dvdspu: Fix pad templates
authorEdward Hervey <bilboed@bilboed.com>
Sun, 29 May 2011 16:16:49 +0000 (18:16 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Sun, 29 May 2011 16:17:55 +0000 (18:17 +0200)
Our caps intersection code is a bit too touchy about what an element
returns compared to its pad templates.

gst/dvdspu/gstdvdspu.c

index 89b63d8..a68cdd5 100644 (file)
@@ -55,16 +55,18 @@ static GstStaticPadTemplate video_sink_factory =
 GST_STATIC_PAD_TEMPLATE ("video",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("video/x-raw-yuv, " "format = (fourcc) { I420 }, "
-        "width = (int) [ 16, 4096 ], " "height = (int) [ 16, 4096 ]")
+    GST_STATIC_CAPS ("video/x-raw-yuv, " "format = (fourcc)I420, "
+        "width = (int) [ 16, 4096 ], " "height = (int) [ 16, 4096 ],"
+        "framerate = " GST_VIDEO_FPS_RANGE)
     /* FIXME: Can support YV12 one day too */
     );
 
 static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS ("video/x-raw-yuv, " "format = (fourcc) { I420 }, "
-        "width = (int) [ 16, 4096 ], " "height = (int) [ 16, 4096 ]")
+    GST_STATIC_CAPS ("video/x-raw-yuv, " "format = (fourcc)I420, "
+        "width = (int) [ 16, 4096 ], " "height = (int) [ 16, 4096 ],"
+        "framerate = " GST_VIDEO_FPS_RANGE)
     /* FIXME: Can support YV12 one day too */
     );