decodebin: move null check
authorLuis de Bethencourt <luis.bg@samsung.com>
Mon, 23 Feb 2015 17:24:52 +0000 (17:24 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Mon, 23 Feb 2015 17:24:56 +0000 (17:24 +0000)
commit8703d93bbf421b76f289f1e4f6c0489245071604
tree64a2408e6b3429b5b1554d78307896b124a6aa9d
parentb3053925ac8b82fa4a29ab9782f43398b00ef372
decodebin: move null check

Check if dbin->decode_chain is NULL before running drain_and_switch_chains()
because if it is, we shouldn't run that function or it will segfault.

CID #1271074
gst/playback/gstdecodebin2.c