mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-04 22:48:54 +00:00
auparse: avoid hanging on invalid short input
... as in such case there is no srcpad yet on which to forward EOS.
This commit is contained in:
parent
14b9fb7be6
commit
1880c4145e
1 changed files with 6 additions and 0 deletions
|
@ -749,6 +749,12 @@ gst_au_parse_sink_event (GstPad * pad, GstEvent * event)
|
|||
gst_event_unref (event);
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_EOS:
|
||||
if (!auparse->srcpad) {
|
||||
GST_ELEMENT_ERROR (auparse, STREAM, WRONG_TYPE,
|
||||
("No valid input found before end of stream"), (NULL));
|
||||
}
|
||||
/* fall-through */
|
||||
default:
|
||||
ret = gst_pad_event_default (pad, event);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue