flvdemux: don't emit pad-added until caps are ready
authorHavard Graff <havard.graff@gmail.com>
Wed, 16 Mar 2016 19:17:55 +0000 (20:17 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Mar 2016 12:33:33 +0000 (14:33 +0200)
commitbcbb8fc1da844cfbab2e2d950d6b506c47ee7d55
tree50e75568a83d2857e4ba48d77bb1a8e064c97a73
parent1071309870735ce1f167a2e53c224636812e6eaf
flvdemux: don't emit pad-added until caps are ready

In other words, gst_pad_get_current_caps should never return NULL
in a pad-added callback from the demuxer.

Added tests for the two special cases with AAC and H.264 where this
would happen every time.

https://bugzilla.gnome.org/show_bug.cgi?id=763780
gst/flv/gstflvdemux.c
tests/check/elements/flvdemux.c