dvdec: Properly refuse incoming stream without framerate
authorEdward Hervey <bilboed@bilboed.com>
Fri, 11 Apr 2014 09:53:42 +0000 (11:53 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Fri, 11 Apr 2014 09:53:42 +0000 (11:53 +0200)
The return value wasn't properly propagated back if the caps
didn't contain a framerate

ext/dv/gstdvdec.c

index c84461e6319a5f9d3a8ff37d00430638844ce46a..ea2ea417b10576c9416076ed2e6c3ca58ea97173 100644 (file)
@@ -393,10 +393,9 @@ gst_dvdec_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
       GstCaps *caps;
 
       gst_event_parse_caps (event, &caps);
-      gst_dvdec_sink_setcaps (dvdec, caps);
+      res = gst_dvdec_sink_setcaps (dvdec, caps);
       gst_event_unref (event);
       event = NULL;
-      res = TRUE;
       break;
     }