Fixes for new caps system
authorDavid Schleef <ds@schleef.org>
Mon, 14 Jul 2003 08:29:25 +0000 (08:29 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 14 Jul 2003 08:29:25 +0000 (08:29 +0000)
Original commit message from CVS:
Fixes for new caps system

ext/pango/gsttimeoverlay.c

index 5682b82..a9330e5 100644 (file)
@@ -146,9 +146,10 @@ gst_timeoverlay_src_template_factory(void)
   static GstPadTemplate *templ = NULL;
 
   if(!templ){
-    GstCaps *caps = GST_CAPS_NEW("src","video/raw",
-               "width", GST_PROPS_INT_RANGE (0, G_MAXINT),
-               "height", GST_PROPS_INT_RANGE (0, G_MAXINT));
+    GstCaps *caps = GST_CAPS_NEW("src","video/x-raw-yuv",
+               "width", GST_PROPS_INT_RANGE (1, G_MAXINT),
+               "height", GST_PROPS_INT_RANGE (1, G_MAXINT),
+               "framerate", GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT));
 
     caps = gst_caps_intersect(caps, gst_timeoverlay_get_capslist ());
 
@@ -163,9 +164,10 @@ gst_timeoverlay_sink_template_factory(void)
   static GstPadTemplate *templ = NULL;
 
   if(!templ){
-    GstCaps *caps = GST_CAPS_NEW("sink","video/raw",
-               "width", GST_PROPS_INT_RANGE (0, G_MAXINT),
-               "height", GST_PROPS_INT_RANGE (0, G_MAXINT));
+    GstCaps *caps = GST_CAPS_NEW("sink","video/x-raw-yuv",
+               "width", GST_PROPS_INT_RANGE (1, G_MAXINT),
+               "height", GST_PROPS_INT_RANGE (1, G_MAXINT),
+               "framerate", GST_PROPS_FLOAT_RANGE (0, G_MAXFLOAT));
 
     caps = gst_caps_intersect(caps, gst_timeoverlay_get_capslist ());