mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
dvdec: Properly refuse incoming stream without framerate
The return value wasn't properly propagated back if the caps didn't contain a framerate
This commit is contained in:
parent
847ba2a30d
commit
10feb2ba7d
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue