mpeg4videoparse: Make sure pad template caps are not fixed from the begging
authorThibault Saunier <thibault.saunier@collabora.com>
Thu, 15 Nov 2012 13:14:34 +0000 (10:14 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Thu, 15 Nov 2012 13:45:53 +0000 (10:45 -0300)
commitdaed78039e704b969dd13e900c4d6e7f616c8fc4
tree1082fc2d8bb2615ca213eb948d61c75e67b69a0c
parent3d012665f06797cd2cd3c7c2f4df7144319b44ce
mpeg4videoparse: Make sure pad template caps are not fixed from the begging

Right now decodebin will concider the pad template caps as fixed and if a decoder
has restriction on for example height/width it won't be autoplugged because
gst_caps_is_subset fails as those fields are missing from the pad template caps.
We fix the issue here making sure that the pad caps are fixed using data from
the stream.
gst/videoparsers/gstmpeg4videoparse.c