gtk: Fix "pixel-aspect-ratio" property range

Fix the arguments passed to gst_param_spec_fraction in the incorrect
order.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1137>
This commit is contained in:
Bastien Nocera 2021-05-11 11:28:57 +02:00 committed by GStreamer Marge Bot
parent 488d29eb41
commit 5dfe92a579
3 changed files with 7 additions and 7 deletions

View file

@ -7209,7 +7209,7 @@
"controllable": false, "controllable": false,
"default": "0/1", "default": "0/1",
"max": "2147483647/1", "max": "2147483647/1",
"min": "0/1", "min": "0/2147483647",
"mutable": "null", "mutable": "null",
"readable": true, "readable": true,
"type": "GstFraction", "type": "GstFraction",

View file

@ -113,9 +113,9 @@ gst_gtk_base_sink_class_init (GstGtkBaseSinkClass * klass)
g_object_class_install_property (gobject_class, PROP_PIXEL_ASPECT_RATIO, g_object_class_install_property (gobject_class, PROP_PIXEL_ASPECT_RATIO,
gst_param_spec_fraction ("pixel-aspect-ratio", "Pixel Aspect Ratio", gst_param_spec_fraction ("pixel-aspect-ratio", "Pixel Aspect Ratio",
"The pixel aspect ratio of the device", DEFAULT_DISPLAY_PAR_N, "The pixel aspect ratio of the device",
DEFAULT_DISPLAY_PAR_D, G_MAXINT, 1, 1, 1, 0, G_MAXINT, G_MAXINT, 1, DEFAULT_DISPLAY_PAR_N,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); DEFAULT_DISPLAY_PAR_D, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_class, PROP_IGNORE_ALPHA, g_object_class_install_property (gobject_class, PROP_IGNORE_ALPHA,
g_param_spec_boolean ("ignore-alpha", "Ignore Alpha", g_param_spec_boolean ("ignore-alpha", "Ignore Alpha",

View file

@ -454,9 +454,9 @@ gtk_gst_base_widget_class_init (GtkGstBaseWidgetClass * klass)
g_object_class_install_property (gobject_klass, PROP_PIXEL_ASPECT_RATIO, g_object_class_install_property (gobject_klass, PROP_PIXEL_ASPECT_RATIO,
gst_param_spec_fraction ("pixel-aspect-ratio", "Pixel Aspect Ratio", gst_param_spec_fraction ("pixel-aspect-ratio", "Pixel Aspect Ratio",
"The pixel aspect ratio of the device", DEFAULT_DISPLAY_PAR_N, "The pixel aspect ratio of the device",
DEFAULT_DISPLAY_PAR_D, G_MAXINT, 1, 1, 1, 0, 1, G_MAXINT, G_MAXINT, DEFAULT_DISPLAY_PAR_N,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); DEFAULT_DISPLAY_PAR_D, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (gobject_klass, PROP_IGNORE_ALPHA, g_object_class_install_property (gobject_klass, PROP_IGNORE_ALPHA,
g_param_spec_boolean ("ignore-alpha", "Ignore Alpha", g_param_spec_boolean ("ignore-alpha", "Ignore Alpha",