From ee9e8618ff3f0685e85e343863b234299f6bc838 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 29 Apr 2004 03:38:16 +0000 Subject: 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) --- gst/speed/gstspeed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gst') 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); -- cgit v1.2.1