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.
This commit is contained in:
Thibault Saunier 2012-11-15 10:14:34 -03:00
parent 3d012665f0
commit daed78039e

View file

@ -43,6 +43,9 @@ GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/mpeg, "
"mpegversion = (int) 4, "
"width = (int)[ 0, max ], "
"height = (int)[ 0, max ], "
"framerate = (fraction)[ 0, max ]"
"parsed = (boolean) true, " "systemstream = (boolean) false")
);