From daed78039e704b969dd13e900c4d6e7f616c8fc4 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 15 Nov 2012 10:14:34 -0300 Subject: [PATCH] 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videoparsers/gstmpeg4videoparse.c b/gst/videoparsers/gstmpeg4videoparse.c index 47d2aa2cae..6f5c45da96 100644 --- a/gst/videoparsers/gstmpeg4videoparse.c +++ b/gst/videoparsers/gstmpeg4videoparse.c @@ -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") );