mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Fixes for new caps system
Original commit message from CVS: Fixes for new caps system
This commit is contained in:
parent
1cda8cfdb0
commit
383483f966
1 changed files with 8 additions and 6 deletions
|
@ -146,9 +146,10 @@ gst_timeoverlay_src_template_factory(void)
|
||||||
static GstPadTemplate *templ = NULL;
|
static GstPadTemplate *templ = NULL;
|
||||||
|
|
||||||
if(!templ){
|
if(!templ){
|
||||||
GstCaps *caps = GST_CAPS_NEW("src","video/raw",
|
GstCaps *caps = GST_CAPS_NEW("src","video/x-raw-yuv",
|
||||||
"width", GST_PROPS_INT_RANGE (0, G_MAXINT),
|
"width", GST_PROPS_INT_RANGE (1, G_MAXINT),
|
||||||
"height", GST_PROPS_INT_RANGE (0, 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 ());
|
caps = gst_caps_intersect(caps, gst_timeoverlay_get_capslist ());
|
||||||
|
|
||||||
|
@ -163,9 +164,10 @@ gst_timeoverlay_sink_template_factory(void)
|
||||||
static GstPadTemplate *templ = NULL;
|
static GstPadTemplate *templ = NULL;
|
||||||
|
|
||||||
if(!templ){
|
if(!templ){
|
||||||
GstCaps *caps = GST_CAPS_NEW("sink","video/raw",
|
GstCaps *caps = GST_CAPS_NEW("sink","video/x-raw-yuv",
|
||||||
"width", GST_PROPS_INT_RANGE (0, G_MAXINT),
|
"width", GST_PROPS_INT_RANGE (1, G_MAXINT),
|
||||||
"height", GST_PROPS_INT_RANGE (0, 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 ());
|
caps = gst_caps_intersect(caps, gst_timeoverlay_get_capslist ());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue