vaapidecode: fix sink caps to not expose size information.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 14 Sep 2011 11:07:18 +0000 (13:07 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 14 Sep 2011 11:10:25 +0000 (13:10 +0200)
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

index 4282a42..13dad07 100644 (file)
@@ -50,10 +50,7 @@ static const GstElementDetails gst_vaapidecode_details =
         "Gwenole Beauchesne <gbeauchesne@splitted-desktop.com>");
 
 /* 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")