decodebin: return incomplete topology if decode chains' cap could not be obtained
authorVineeth T M <vineeth.tm@samsung.com>
Mon, 23 Nov 2015 06:06:02 +0000 (15:06 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 17 Feb 2016 08:48:29 +0000 (10:48 +0200)
commit5d78aab81081d157826e0228dc310b4fae9eb8e0
tree83816a8e9ae6b16add19412394c390fd959ebad7
parent1cb19d11463f54f2dc58a11ba49ecb1c4b5f07a5
decodebin: return incomplete topology if decode chains' cap could not be obtained

When getting caps of the decode chain, in get_topology, the caps are being
checked if fixed or not. But get_topology will be called when the decode is
chain is being exposed and hence it will always be fixed. Hence removing the
check for fixed caps. Removing gst_pad_get_current_caps for the chain->pad, as
get_pad_caps will again call the same api.

And get_topology can return NULL value if currently shutting down the
pipeline, which on being passed to create message will result in assertion
error. Check if topology is valid before using it

https://bugzilla.gnome.org/show_bug.cgi?id=755918
gst/playback/gstdecodebin2.c