summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2003-07-14 08:29:25 +0000
committerDavid Schleef <ds@schleef.org>2003-07-14 08:29:25 +0000
commitc243e19dfa9e4ea821dfdcf5539b88e1b82da50f (patch)
treefe44bbaf2bfbbe24ca1c4cc211eb133e9cc997da /ext
parent73ee194cb09d57bfcdb20ffcc11f572a56bbcffd (diff)
Fixes for new caps system
Original commit message from CVS: Fixes for new caps system
Diffstat (limited to 'ext')
-rw-r--r--ext/pango/gsttimeoverlay.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/pango/gsttimeoverlay.c b/ext/pango/gsttimeoverlay.c
index 5682b821..a9330e51 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 ());