mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
fix videotestsrc ! fakesink: use macro to null terminate props reformat a few lines
Original commit message from CVS: fix videotestsrc ! fakesink: use macro to null terminate props reformat a few lines
This commit is contained in:
parent
45b6f61ee5
commit
0f52282149
1 changed files with 16 additions and 12 deletions
|
@ -141,8 +141,12 @@ gst_videotestsrc_class_init (GstVideotestsrcClass * klass)
|
||||||
gobject_class = (GObjectClass *) klass;
|
gobject_class = (GObjectClass *) klass;
|
||||||
gstelement_class = (GstElementClass *) klass;
|
gstelement_class = (GstElementClass *) klass;
|
||||||
|
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_WIDTH, g_param_spec_int ("width", "width", "width", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_WIDTH,
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HEIGHT, g_param_spec_int ("height", "height", "height", G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
g_param_spec_int ("width", "width", "width",
|
||||||
|
G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
||||||
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_HEIGHT,
|
||||||
|
g_param_spec_int ("height", "height", "height",
|
||||||
|
G_MININT, G_MAXINT, 0, G_PARAM_READWRITE)); /* CHECKME */
|
||||||
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FOURCC,
|
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_FOURCC,
|
||||||
g_param_spec_string ("fourcc", "fourcc", "fourcc",
|
g_param_spec_string ("fourcc", "fourcc", "fourcc",
|
||||||
NULL, G_PARAM_READWRITE));
|
NULL, G_PARAM_READWRITE));
|
||||||
|
@ -239,11 +243,11 @@ gst_videotestsrc_get_capslist (void)
|
||||||
char *s = fourcc_list[i].fourcc;
|
char *s = fourcc_list[i].fourcc;
|
||||||
int fourcc = GST_MAKE_FOURCC (s[0], s[1], s[2], s[3]);
|
int fourcc = GST_MAKE_FOURCC (s[0], s[1], s[2], s[3]);
|
||||||
|
|
||||||
caps = gst_caps_new ("videotestsrc_filter",
|
caps = GST_CAPS_NEW ("videotestsrc_filter",
|
||||||
"video/raw",
|
"video/raw",
|
||||||
gst_props_new ("format", GST_PROPS_FOURCC (fourcc),
|
"format", GST_PROPS_FOURCC (fourcc),
|
||||||
"width", GST_PROPS_INT (640), "height", GST_PROPS_INT (480)
|
"width", GST_PROPS_INT (640),
|
||||||
));
|
"height", GST_PROPS_INT (480));
|
||||||
capslist = gst_caps_append (capslist, caps);
|
capslist = gst_caps_append (capslist, caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,8 +265,8 @@ gst_videotestsrc_getcaps (GstPad * pad, GstCaps * caps)
|
||||||
return GST_CAPS_NEW ("videotestsrc_filter",
|
return GST_CAPS_NEW ("videotestsrc_filter",
|
||||||
"video/raw",
|
"video/raw",
|
||||||
"format", GST_PROPS_FOURCC (vts->forced_format),
|
"format", GST_PROPS_FOURCC (vts->forced_format),
|
||||||
"width", GST_PROPS_INT (640), "height", GST_PROPS_INT (480)
|
"width", GST_PROPS_INT (640),
|
||||||
);
|
"height", GST_PROPS_INT (480));
|
||||||
} else {
|
} else {
|
||||||
return gst_videotestsrc_get_capslist ();
|
return gst_videotestsrc_get_capslist ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue