mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
3d012665f0
commit
daed78039e
1 changed files with 3 additions and 0 deletions
|
@ -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")
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue