diff options
author | Stefan Kost <ensonic@users.sf.net> | 2010-06-21 12:17:39 +0300 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2010-06-21 12:19:59 +0300 |
commit | ac8e87bb2c46f3fca24bdb8372860f686662a31c (patch) | |
tree | 3476a3a5bc4ddc9581e813410944d5fd6487b81c | |
parent | f9fe85dbb20239a7e229b8798333fcf02ef3d9f5 (diff) | |
download | gstreamer-plugins-good-ac8e87bb2c46f3fca24bdb8372860f686662a31c.tar.gz |
v4l2sink: use glib defines in property declarations for readability
-rw-r--r-- | sys/v4l2/gstv4l2sink.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/v4l2/gstv4l2sink.c b/sys/v4l2/gstv4l2sink.c index cef861dae..64cdadcaa 100644 --- a/sys/v4l2/gstv4l2sink.c +++ b/sys/v4l2/gstv4l2sink.c @@ -232,21 +232,19 @@ gst_v4l2sink_class_init (GstV4l2SinkClass * klass) g_object_class_install_property (gobject_class, PROP_OVERLAY_TOP, g_param_spec_int ("overlay-top", "Overlay top", "The topmost (y) coordinate of the video overlay; top left corner of screen is 0,0", - 0x80000000, 0x7fffffff, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_MININT, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OVERLAY_LEFT, g_param_spec_int ("overlay-left", "Overlay left", "The leftmost (x) coordinate of the video overlay; top left corner of screen is 0,0", - 0x80000000, 0x7fffffff, 0, - G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + G_MININT, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OVERLAY_WIDTH, g_param_spec_uint ("overlay-width", "Overlay width", "The width of the video overlay; default is equal to negotiated image width", - 0, 0xffffffff, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (gobject_class, PROP_OVERLAY_HEIGHT, g_param_spec_uint ("overlay-height", "Overlay height", "The height of the video overlay; default is equal to negotiated image height", - 0, 0xffffffff, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); basesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_get_caps); basesink_class->set_caps = GST_DEBUG_FUNCPTR (gst_v4l2sink_set_caps); |