riff-media: Check if caps are NULL before using them for the first time, not afterwards
authorSebastian Dröge <sebastian@centricular.com>
Sat, 26 Nov 2016 11:53:49 +0000 (13:53 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sat, 26 Nov 2016 11:54:41 +0000 (13:54 +0200)
commit0846eb5b27567aeadfc1d15c737a4083a7f0beee
treec155961629d60011aaa84d8d707ab1a71870c53c
parent69c1e0d7a9c6b8935c8aea5fdb3ef429939c3f66
riff-media: Check if caps are NULL before using them for the first time, not afterwards

Otherwise we'll get a g_critical() before erroring out cleanly on
https://samples.mplayerhq.hu/A-codecs/ATRAC3/SND0.AT3
gst-libs/gst/riff/riff-media.c