Commit 1e09e5bf authored by Havard Graff's avatar Havard Graff Committed by Tim-Philipp Müller
Browse files
parent 7335d030
...@@ -3145,10 +3145,11 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) ...@@ -3145,10 +3145,11 @@ gst_flv_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
gst_object_unref (index); gst_object_unref (index);
} }
if (!demux->audio_pad && !demux->video_pad) if (!demux->audio_pad && !demux->video_pad) {
GST_ELEMENT_ERROR (demux, STREAM, FAILED, GST_ELEMENT_ERROR (demux, STREAM, FAILED,
("Internal data stream error."), ("Got EOS before any data")); ("Internal data stream error."), ("Got EOS before any data"));
else { gst_event_unref (event);
} else {
if (!demux->no_more_pads) { if (!demux->no_more_pads) {
gst_element_no_more_pads (GST_ELEMENT (demux)); gst_element_no_more_pads (GST_ELEMENT (demux));
demux->no_more_pads = TRUE; demux->no_more_pads = TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment