xvimagesink: Use PROP_ instead of ARG_ for the property enums

This commit is contained in:
Sebastian Dröge 2010-10-25 14:09:39 +01:00
parent 72d6f7f4d6
commit f8f1aa2160

View file

@ -170,25 +170,25 @@ static GstStaticPadTemplate gst_xvimagesink_sink_template_factory =
enum enum
{ {
ARG_0, PROP_0,
ARG_CONTRAST, PROP_CONTRAST,
ARG_BRIGHTNESS, PROP_BRIGHTNESS,
ARG_HUE, PROP_HUE,
ARG_SATURATION, PROP_SATURATION,
ARG_DISPLAY, PROP_DISPLAY,
ARG_SYNCHRONOUS, PROP_SYNCHRONOUS,
ARG_PIXEL_ASPECT_RATIO, PROP_PIXEL_ASPECT_RATIO,
ARG_FORCE_ASPECT_RATIO, PROP_FORCE_ASPECT_RATIO,
ARG_HANDLE_EVENTS, PROP_HANDLE_EVENTS,
ARG_DEVICE, PROP_DEVICE,
ARG_DEVICE_NAME, PROP_DEVICE_NAME,
ARG_HANDLE_EXPOSE, PROP_HANDLE_EXPOSE,
ARG_DOUBLE_BUFFER, PROP_DOUBLE_BUFFER,
ARG_AUTOPAINT_COLORKEY, PROP_AUTOPAINT_COLORKEY,
ARG_COLORKEY, PROP_COLORKEY,
ARG_DRAW_BORDERS, PROP_DRAW_BORDERS,
ARG_WINDOW_WIDTH, PROP_WINDOW_WIDTH,
ARG_WINDOW_HEIGHT PROP_WINDOW_HEIGHT
}; };
static GstVideoSinkClass *parent_class = NULL; static GstVideoSinkClass *parent_class = NULL;
@ -3070,10 +3070,10 @@ gst_xvimagesink_probe_probe_property (GstPropertyProbe * probe,
GstXvImageSink *xvimagesink = GST_XVIMAGESINK (probe); GstXvImageSink *xvimagesink = GST_XVIMAGESINK (probe);
switch (prop_id) { switch (prop_id) {
case ARG_DEVICE: case PROP_DEVICE:
case ARG_AUTOPAINT_COLORKEY: case PROP_AUTOPAINT_COLORKEY:
case ARG_DOUBLE_BUFFER: case PROP_DOUBLE_BUFFER:
case ARG_COLORKEY: case PROP_COLORKEY:
GST_DEBUG_OBJECT (xvimagesink, GST_DEBUG_OBJECT (xvimagesink,
"probing device list and get capabilities"); "probing device list and get capabilities");
if (!xvimagesink->xcontext) { if (!xvimagesink->xcontext) {
@ -3095,10 +3095,10 @@ gst_xvimagesink_probe_needs_probe (GstPropertyProbe * probe,
gboolean ret = FALSE; gboolean ret = FALSE;
switch (prop_id) { switch (prop_id) {
case ARG_DEVICE: case PROP_DEVICE:
case ARG_AUTOPAINT_COLORKEY: case PROP_AUTOPAINT_COLORKEY:
case ARG_DOUBLE_BUFFER: case PROP_DOUBLE_BUFFER:
case ARG_COLORKEY: case PROP_COLORKEY:
if (xvimagesink->xcontext != NULL) { if (xvimagesink->xcontext != NULL) {
ret = FALSE; ret = FALSE;
} else { } else {
@ -3127,7 +3127,7 @@ gst_xvimagesink_probe_get_values (GstPropertyProbe * probe,
} }
switch (prop_id) { switch (prop_id) {
case ARG_DEVICE: case PROP_DEVICE:
{ {
guint i; guint i;
GValue value = { 0 }; GValue value = { 0 };
@ -3145,7 +3145,7 @@ gst_xvimagesink_probe_get_values (GstPropertyProbe * probe,
g_value_unset (&value); g_value_unset (&value);
break; break;
} }
case ARG_AUTOPAINT_COLORKEY: case PROP_AUTOPAINT_COLORKEY:
if (xvimagesink->have_autopaint_colorkey) { if (xvimagesink->have_autopaint_colorkey) {
GValue value = { 0 }; GValue value = { 0 };
@ -3158,7 +3158,7 @@ gst_xvimagesink_probe_get_values (GstPropertyProbe * probe,
g_value_unset (&value); g_value_unset (&value);
} }
break; break;
case ARG_DOUBLE_BUFFER: case PROP_DOUBLE_BUFFER:
if (xvimagesink->have_double_buffer) { if (xvimagesink->have_double_buffer) {
GValue value = { 0 }; GValue value = { 0 };
@ -3171,7 +3171,7 @@ gst_xvimagesink_probe_get_values (GstPropertyProbe * probe,
g_value_unset (&value); g_value_unset (&value);
} }
break; break;
case ARG_COLORKEY: case PROP_COLORKEY:
if (xvimagesink->have_colorkey) { if (xvimagesink->have_colorkey) {
GValue value = { 0 }; GValue value = { 0 };
@ -3218,30 +3218,30 @@ gst_xvimagesink_set_property (GObject * object, guint prop_id,
xvimagesink = GST_XVIMAGESINK (object); xvimagesink = GST_XVIMAGESINK (object);
switch (prop_id) { switch (prop_id) {
case ARG_HUE: case PROP_HUE:
xvimagesink->hue = g_value_get_int (value); xvimagesink->hue = g_value_get_int (value);
xvimagesink->cb_changed = TRUE; xvimagesink->cb_changed = TRUE;
gst_xvimagesink_update_colorbalance (xvimagesink); gst_xvimagesink_update_colorbalance (xvimagesink);
break; break;
case ARG_CONTRAST: case PROP_CONTRAST:
xvimagesink->contrast = g_value_get_int (value); xvimagesink->contrast = g_value_get_int (value);
xvimagesink->cb_changed = TRUE; xvimagesink->cb_changed = TRUE;
gst_xvimagesink_update_colorbalance (xvimagesink); gst_xvimagesink_update_colorbalance (xvimagesink);
break; break;
case ARG_BRIGHTNESS: case PROP_BRIGHTNESS:
xvimagesink->brightness = g_value_get_int (value); xvimagesink->brightness = g_value_get_int (value);
xvimagesink->cb_changed = TRUE; xvimagesink->cb_changed = TRUE;
gst_xvimagesink_update_colorbalance (xvimagesink); gst_xvimagesink_update_colorbalance (xvimagesink);
break; break;
case ARG_SATURATION: case PROP_SATURATION:
xvimagesink->saturation = g_value_get_int (value); xvimagesink->saturation = g_value_get_int (value);
xvimagesink->cb_changed = TRUE; xvimagesink->cb_changed = TRUE;
gst_xvimagesink_update_colorbalance (xvimagesink); gst_xvimagesink_update_colorbalance (xvimagesink);
break; break;
case ARG_DISPLAY: case PROP_DISPLAY:
xvimagesink->display_name = g_strdup (g_value_get_string (value)); xvimagesink->display_name = g_strdup (g_value_get_string (value));
break; break;
case ARG_SYNCHRONOUS: case PROP_SYNCHRONOUS:
xvimagesink->synchronous = g_value_get_boolean (value); xvimagesink->synchronous = g_value_get_boolean (value);
if (xvimagesink->xcontext) { if (xvimagesink->xcontext) {
XSynchronize (xvimagesink->xcontext->disp, xvimagesink->synchronous); XSynchronize (xvimagesink->xcontext->disp, xvimagesink->synchronous);
@ -3249,7 +3249,7 @@ gst_xvimagesink_set_property (GObject * object, guint prop_id,
xvimagesink->synchronous ? "TRUE" : "FALSE"); xvimagesink->synchronous ? "TRUE" : "FALSE");
} }
break; break;
case ARG_PIXEL_ASPECT_RATIO: case PROP_PIXEL_ASPECT_RATIO:
g_free (xvimagesink->par); g_free (xvimagesink->par);
xvimagesink->par = g_new0 (GValue, 1); xvimagesink->par = g_new0 (GValue, 1);
g_value_init (xvimagesink->par, GST_TYPE_FRACTION); g_value_init (xvimagesink->par, GST_TYPE_FRACTION);
@ -3261,31 +3261,31 @@ gst_xvimagesink_set_property (GObject * object, guint prop_id,
gst_value_get_fraction_numerator (xvimagesink->par), gst_value_get_fraction_numerator (xvimagesink->par),
gst_value_get_fraction_denominator (xvimagesink->par)); gst_value_get_fraction_denominator (xvimagesink->par));
break; break;
case ARG_FORCE_ASPECT_RATIO: case PROP_FORCE_ASPECT_RATIO:
xvimagesink->keep_aspect = g_value_get_boolean (value); xvimagesink->keep_aspect = g_value_get_boolean (value);
break; break;
case ARG_HANDLE_EVENTS: case PROP_HANDLE_EVENTS:
gst_xvimagesink_set_event_handling (GST_X_OVERLAY (xvimagesink), gst_xvimagesink_set_event_handling (GST_X_OVERLAY (xvimagesink),
g_value_get_boolean (value)); g_value_get_boolean (value));
gst_xvimagesink_manage_event_thread (xvimagesink); gst_xvimagesink_manage_event_thread (xvimagesink);
break; break;
case ARG_DEVICE: case PROP_DEVICE:
xvimagesink->adaptor_no = atoi (g_value_get_string (value)); xvimagesink->adaptor_no = atoi (g_value_get_string (value));
break; break;
case ARG_HANDLE_EXPOSE: case PROP_HANDLE_EXPOSE:
xvimagesink->handle_expose = g_value_get_boolean (value); xvimagesink->handle_expose = g_value_get_boolean (value);
gst_xvimagesink_manage_event_thread (xvimagesink); gst_xvimagesink_manage_event_thread (xvimagesink);
break; break;
case ARG_DOUBLE_BUFFER: case PROP_DOUBLE_BUFFER:
xvimagesink->double_buffer = g_value_get_boolean (value); xvimagesink->double_buffer = g_value_get_boolean (value);
break; break;
case ARG_AUTOPAINT_COLORKEY: case PROP_AUTOPAINT_COLORKEY:
xvimagesink->autopaint_colorkey = g_value_get_boolean (value); xvimagesink->autopaint_colorkey = g_value_get_boolean (value);
break; break;
case ARG_COLORKEY: case PROP_COLORKEY:
xvimagesink->colorkey = g_value_get_int (value); xvimagesink->colorkey = g_value_get_int (value);
break; break;
case ARG_DRAW_BORDERS: case PROP_DRAW_BORDERS:
xvimagesink->draw_borders = g_value_get_boolean (value); xvimagesink->draw_borders = g_value_get_boolean (value);
break; break;
default: default:
@ -3305,35 +3305,35 @@ gst_xvimagesink_get_property (GObject * object, guint prop_id,
xvimagesink = GST_XVIMAGESINK (object); xvimagesink = GST_XVIMAGESINK (object);
switch (prop_id) { switch (prop_id) {
case ARG_HUE: case PROP_HUE:
g_value_set_int (value, xvimagesink->hue); g_value_set_int (value, xvimagesink->hue);
break; break;
case ARG_CONTRAST: case PROP_CONTRAST:
g_value_set_int (value, xvimagesink->contrast); g_value_set_int (value, xvimagesink->contrast);
break; break;
case ARG_BRIGHTNESS: case PROP_BRIGHTNESS:
g_value_set_int (value, xvimagesink->brightness); g_value_set_int (value, xvimagesink->brightness);
break; break;
case ARG_SATURATION: case PROP_SATURATION:
g_value_set_int (value, xvimagesink->saturation); g_value_set_int (value, xvimagesink->saturation);
break; break;
case ARG_DISPLAY: case PROP_DISPLAY:
g_value_set_string (value, xvimagesink->display_name); g_value_set_string (value, xvimagesink->display_name);
break; break;
case ARG_SYNCHRONOUS: case PROP_SYNCHRONOUS:
g_value_set_boolean (value, xvimagesink->synchronous); g_value_set_boolean (value, xvimagesink->synchronous);
break; break;
case ARG_PIXEL_ASPECT_RATIO: case PROP_PIXEL_ASPECT_RATIO:
if (xvimagesink->par) if (xvimagesink->par)
g_value_transform (xvimagesink->par, value); g_value_transform (xvimagesink->par, value);
break; break;
case ARG_FORCE_ASPECT_RATIO: case PROP_FORCE_ASPECT_RATIO:
g_value_set_boolean (value, xvimagesink->keep_aspect); g_value_set_boolean (value, xvimagesink->keep_aspect);
break; break;
case ARG_HANDLE_EVENTS: case PROP_HANDLE_EVENTS:
g_value_set_boolean (value, xvimagesink->handle_events); g_value_set_boolean (value, xvimagesink->handle_events);
break; break;
case ARG_DEVICE: case PROP_DEVICE:
{ {
char *adaptor_no_s = g_strdup_printf ("%u", xvimagesink->adaptor_no); char *adaptor_no_s = g_strdup_printf ("%u", xvimagesink->adaptor_no);
@ -3341,7 +3341,7 @@ gst_xvimagesink_get_property (GObject * object, guint prop_id,
g_free (adaptor_no_s); g_free (adaptor_no_s);
break; break;
} }
case ARG_DEVICE_NAME: case PROP_DEVICE_NAME:
if (xvimagesink->xcontext && xvimagesink->xcontext->adaptors) { if (xvimagesink->xcontext && xvimagesink->xcontext->adaptors) {
g_value_set_string (value, g_value_set_string (value,
xvimagesink->xcontext->adaptors[xvimagesink->adaptor_no]); xvimagesink->xcontext->adaptors[xvimagesink->adaptor_no]);
@ -3349,28 +3349,28 @@ gst_xvimagesink_get_property (GObject * object, guint prop_id,
g_value_set_string (value, NULL); g_value_set_string (value, NULL);
} }
break; break;
case ARG_HANDLE_EXPOSE: case PROP_HANDLE_EXPOSE:
g_value_set_boolean (value, xvimagesink->handle_expose); g_value_set_boolean (value, xvimagesink->handle_expose);
break; break;
case ARG_DOUBLE_BUFFER: case PROP_DOUBLE_BUFFER:
g_value_set_boolean (value, xvimagesink->double_buffer); g_value_set_boolean (value, xvimagesink->double_buffer);
break; break;
case ARG_AUTOPAINT_COLORKEY: case PROP_AUTOPAINT_COLORKEY:
g_value_set_boolean (value, xvimagesink->autopaint_colorkey); g_value_set_boolean (value, xvimagesink->autopaint_colorkey);
break; break;
case ARG_COLORKEY: case PROP_COLORKEY:
g_value_set_int (value, xvimagesink->colorkey); g_value_set_int (value, xvimagesink->colorkey);
break; break;
case ARG_DRAW_BORDERS: case PROP_DRAW_BORDERS:
g_value_set_boolean (value, xvimagesink->draw_borders); g_value_set_boolean (value, xvimagesink->draw_borders);
break; break;
case ARG_WINDOW_WIDTH: case PROP_WINDOW_WIDTH:
if (xvimagesink->xwindow) if (xvimagesink->xwindow)
g_value_set_uint64 (value, xvimagesink->xwindow->width); g_value_set_uint64 (value, xvimagesink->xwindow->width);
else else
g_value_set_uint64 (value, 0); g_value_set_uint64 (value, 0);
break; break;
case ARG_WINDOW_HEIGHT: case PROP_WINDOW_HEIGHT:
if (xvimagesink->xwindow) if (xvimagesink->xwindow)
g_value_set_uint64 (value, xvimagesink->xwindow->height); g_value_set_uint64 (value, xvimagesink->xwindow->height);
else else
@ -3540,45 +3540,45 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
gobject_class->set_property = gst_xvimagesink_set_property; gobject_class->set_property = gst_xvimagesink_set_property;
gobject_class->get_property = gst_xvimagesink_get_property; gobject_class->get_property = gst_xvimagesink_get_property;
g_object_class_install_property (gobject_class, ARG_CONTRAST, g_object_class_install_property (gobject_class, PROP_CONTRAST,
g_param_spec_int ("contrast", "Contrast", "The contrast of the video", g_param_spec_int ("contrast", "Contrast", "The contrast of the video",
-1000, 1000, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); -1000, 1000, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_BRIGHTNESS, g_object_class_install_property (gobject_class, PROP_BRIGHTNESS,
g_param_spec_int ("brightness", "Brightness", g_param_spec_int ("brightness", "Brightness",
"The brightness of the video", -1000, 1000, 0, "The brightness of the video", -1000, 1000, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_HUE, g_object_class_install_property (gobject_class, PROP_HUE,
g_param_spec_int ("hue", "Hue", "The hue of the video", -1000, 1000, 0, g_param_spec_int ("hue", "Hue", "The hue of the video", -1000, 1000, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_SATURATION, g_object_class_install_property (gobject_class, PROP_SATURATION,
g_param_spec_int ("saturation", "Saturation", g_param_spec_int ("saturation", "Saturation",
"The saturation of the video", -1000, 1000, 0, "The saturation of the video", -1000, 1000, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DISPLAY, g_object_class_install_property (gobject_class, PROP_DISPLAY,
g_param_spec_string ("display", "Display", "X Display name", NULL, g_param_spec_string ("display", "Display", "X Display name", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_SYNCHRONOUS, g_object_class_install_property (gobject_class, PROP_SYNCHRONOUS,
g_param_spec_boolean ("synchronous", "Synchronous", g_param_spec_boolean ("synchronous", "Synchronous",
"When enabled, runs " "When enabled, runs "
"the X display in synchronous mode. (used only for debugging)", FALSE, "the X display in synchronous mode. (used only for debugging)", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_PIXEL_ASPECT_RATIO, g_object_class_install_property (gobject_class, PROP_PIXEL_ASPECT_RATIO,
g_param_spec_string ("pixel-aspect-ratio", "Pixel Aspect Ratio", g_param_spec_string ("pixel-aspect-ratio", "Pixel Aspect Ratio",
"The pixel aspect ratio of the device", "1/1", "The pixel aspect ratio of the device", "1/1",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_FORCE_ASPECT_RATIO, g_object_class_install_property (gobject_class, PROP_FORCE_ASPECT_RATIO,
g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio", g_param_spec_boolean ("force-aspect-ratio", "Force aspect ratio",
"When enabled, scaling will respect original aspect ratio", FALSE, "When enabled, scaling will respect original aspect ratio", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_HANDLE_EVENTS, g_object_class_install_property (gobject_class, PROP_HANDLE_EVENTS,
g_param_spec_boolean ("handle-events", "Handle XEvents", g_param_spec_boolean ("handle-events", "Handle XEvents",
"When enabled, XEvents will be selected and handled", TRUE, "When enabled, XEvents will be selected and handled", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DEVICE, g_object_class_install_property (gobject_class, PROP_DEVICE,
g_param_spec_string ("device", "Adaptor number", g_param_spec_string ("device", "Adaptor number",
"The number of the video adaptor", "0", "The number of the video adaptor", "0",
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_DEVICE_NAME, g_object_class_install_property (gobject_class, PROP_DEVICE_NAME,
g_param_spec_string ("device-name", "Adaptor name", g_param_spec_string ("device-name", "Adaptor name",
"The name of the video adaptor", NULL, "The name of the video adaptor", NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
@ -3590,17 +3590,17 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
* *
* Since: 0.10.14 * Since: 0.10.14
*/ */
g_object_class_install_property (gobject_class, ARG_HANDLE_EXPOSE, g_object_class_install_property (gobject_class, PROP_HANDLE_EXPOSE,
g_param_spec_boolean ("handle-expose", "Handle expose", g_param_spec_boolean ("handle-expose", "Handle expose",
"When enabled, " "When enabled, "
"the current frame will always be drawn in response to X Expose " "the current frame will always be drawn in response to X Expose "
"events", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); "events", TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_WINDOW_WIDTH, g_object_class_install_property (gobject_class, PROP_WINDOW_WIDTH,
g_param_spec_uint64 ("window-width", "window-width", g_param_spec_uint64 ("window-width", "window-width",
"Width of the screen", 0, G_MAXUINT64, 0, "Width of the screen", 0, G_MAXUINT64, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, ARG_WINDOW_HEIGHT, g_object_class_install_property (gobject_class, PROP_WINDOW_HEIGHT,
g_param_spec_uint64 ("window-height", "window-height", g_param_spec_uint64 ("window-height", "window-height",
"Height of the screen", 0, G_MAXUINT64, 0, "Height of the screen", 0, G_MAXUINT64, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
@ -3612,7 +3612,7 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
* *
* Since: 0.10.14 * Since: 0.10.14
*/ */
g_object_class_install_property (gobject_class, ARG_DOUBLE_BUFFER, g_object_class_install_property (gobject_class, PROP_DOUBLE_BUFFER,
g_param_spec_boolean ("double-buffer", "Double-buffer", g_param_spec_boolean ("double-buffer", "Double-buffer",
"Whether to double-buffer the output", TRUE, "Whether to double-buffer the output", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -3623,7 +3623,7 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
* *
* Since: 0.10.21 * Since: 0.10.21
*/ */
g_object_class_install_property (gobject_class, ARG_AUTOPAINT_COLORKEY, g_object_class_install_property (gobject_class, PROP_AUTOPAINT_COLORKEY,
g_param_spec_boolean ("autopaint-colorkey", "Autofill with colorkey", g_param_spec_boolean ("autopaint-colorkey", "Autofill with colorkey",
"Whether to autofill overlay with colorkey", TRUE, "Whether to autofill overlay with colorkey", TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -3634,7 +3634,7 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
* *
* Since: 0.10.21 * Since: 0.10.21
*/ */
g_object_class_install_property (gobject_class, ARG_COLORKEY, g_object_class_install_property (gobject_class, PROP_COLORKEY,
g_param_spec_int ("colorkey", "Colorkey", g_param_spec_int ("colorkey", "Colorkey",
"Color to use for the overlay mask", G_MININT, G_MAXINT, 0, "Color to use for the overlay mask", G_MININT, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -3647,7 +3647,7 @@ gst_xvimagesink_class_init (GstXvImageSinkClass * klass)
* *
* Since: 0.10.21 * Since: 0.10.21
*/ */
g_object_class_install_property (gobject_class, ARG_DRAW_BORDERS, g_object_class_install_property (gobject_class, PROP_DRAW_BORDERS,
g_param_spec_boolean ("draw-borders", "Colorkey", g_param_spec_boolean ("draw-borders", "Colorkey",
"Draw black borders to fill unused area in force-aspect-ratio mode", "Draw black borders to fill unused area in force-aspect-ratio mode",
TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));