diff options
author | David Schleef <ds@schleef.org> | 2004-04-29 03:38:16 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2004-04-29 03:38:16 +0000 |
commit | ee9e8618ff3f0685e85e343863b234299f6bc838 (patch) | |
tree | dcb5931998a0b1d42b19875d1b7599e5125e26b7 | |
parent | ac9af3a3d70d2a851915704f79302226b99f0b9f (diff) | |
download | gst-plugins-bad-ee9e8618ff3f0685e85e343863b234299f6bc838.tar.gz gst-plugins-bad-ee9e8618ff3f0685e85e343863b234299f6bc838.tar.bz2 gst-plugins-bad-ee9e8618ff3f0685e85e343863b234299f6bc838.zip |
gst/speed/gstspeed.c: Fix caps parsing. (bug #140064)
Original commit message from CVS:
* gst/speed/gstspeed.c: (speed_parse_caps): Fix caps parsing.
(bug #140064)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gst/speed/gstspeed.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2004-04-28 David Schleef <ds@schleef.org> + + * gst/speed/gstspeed.c: (speed_parse_caps): Fix caps parsing. + (bug #140064) + 2004-04-28 Ronald Bultje <rbultje@ronald.bitfreak.net> * ext/alsa/gstalsa.c: (gst_alsa_class_probe_devices): diff --git a/gst/speed/gstspeed.c b/gst/speed/gstspeed.c index 090d13d0..b685bb32 100644 --- a/gst/speed/gstspeed.c +++ b/gst/speed/gstspeed.c @@ -121,9 +121,9 @@ speed_parse_caps (GstSpeed * filter, const GstCaps * caps) ret &= gst_structure_get_int (structure, "channels", &filter->channels); ret &= gst_structure_get_int (structure, "width", &filter->width); ret &= gst_structure_get_int (structure, "endianness", &filter->endianness); - ret &= - gst_structure_get_int (structure, "buffer-frames", - &filter->buffer_frames); + + filter->buffer_frames = 0; + gst_structure_get_int (structure, "buffer-frames", &filter->buffer_frames); mimetype = gst_structure_get_name (structure); |