flvdemux: Do not error out if the first added and chained pad is not linked
authorThibault Saunier <tsaunier@igalia.com>
Sat, 26 Jan 2019 13:35:31 +0000 (10:35 -0300)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Sat, 2 Feb 2019 18:36:09 +0000 (18:36 +0000)
commitbc8af2cca5bc1465c4837ef6ebfc394ad7f9b9a2
tree4268c8d337419b837b8fa90a6ded3a5b853a70a3
parent818428ce9c9b5b4a5d32b808e14621527ffe0698
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

Example:

```
$ gst-launch-1.0 uridecodebin uri=file:///home/thiblahute/gst-validate.save/gst-integration-testsuites/testsuites/../medias/defaults/flv/819290236.flv 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 ...
```
gst/flv/gstflvdemux.c