From c243e19dfa9e4ea821dfdcf5539b88e1b82da50f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 14 Jul 2003 08:29:25 +0000 Subject: [PATCH] Fixes for new caps system Original commit message from CVS: Fixes for new caps system --- ext/pango/gsttimeoverlay.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ext/pango/gsttimeoverlay.c b/ext/pango/gsttimeoverlay.c index 5682b821b0..a9330e5187 100644 --- a/ext/pango/gsttimeoverlay.c +++ b/ext/pango/gsttimeoverlay.c @@ -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 ());