Commit bc8af2cc authored by Thibault Saunier's avatar Thibault Saunier 🌵 Committed by Nicolas Dufresne

flvdemux: Do not error out if the first added and chained pad is not linked

And let it the oportunity to get its other pad linked


$ gst-launch-1.0 uridecodebin uri=file:///home/thiblahute/ caps=audio/x-raw expose-all-streams=FALSE ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstFlvDemux:flvdemux0: Internal data stream error.
Additional debug info:
../subprojects/gst-plugins-good/gst/flv/gstflvdemux.c(2760): gst_flv_demux_loop (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstFlvDemux:flvdemux0:
streaming stopped, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
parent 818428ce
......@@ -2687,7 +2687,8 @@ gst_flv_demux_loop (GstPad * pad)
/* pause if something went wrong or at end */
if (G_UNLIKELY (ret != GST_FLOW_OK))
&& !demux->no_more_pads))
goto pause;
gst_object_unref (demux);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment