From 6b1107cef728d86800ec47f62ecb6110d742ba9b Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Wed, 14 Sep 2011 13:07:18 +0200 Subject: [PATCH] vaapidecode: fix sink caps to not expose size information. This fixes this particular issue: GStreamer-WARNING **: pad vaapidecode0:sink returned caps which are not a real subset of its template caps --- gst/vaapidecode/gstvaapidecode.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst/vaapidecode/gstvaapidecode.c b/gst/vaapidecode/gstvaapidecode.c index 4282a4232a..13dad07ed1 100644 --- a/gst/vaapidecode/gstvaapidecode.c +++ b/gst/vaapidecode/gstvaapidecode.c @@ -50,10 +50,7 @@ static const GstElementDetails gst_vaapidecode_details = "Gwenole Beauchesne "); /* Default templates */ -#define GST_CAPS_CODEC(CODEC) \ - CODEC ", " \ - "width = (int) [ 1, MAX ], " \ - "height = (int) [ 1, MAX ]; " +#define GST_CAPS_CODEC(CODEC) CODEC "; " static const char gst_vaapidecode_sink_caps_str[] = GST_CAPS_CODEC("video/mpeg, mpegversion=2, systemstream=(boolean)false")