From be2757c121f0554b9b39692665f5b62f9ce91d7c Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Thu, 5 Jan 2023 21:18:13 +0100 Subject: [PATCH] gstpipewireformat: Fully handle SPA_CHOICE_Step The step value was not used. --- src/gst/gstpipewireformat.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gst/gstpipewireformat.c b/src/gst/gstpipewireformat.c index c8ce7ba62..5e1f86966 100644 --- a/src/gst/gstpipewireformat.c +++ b/src/gst/gstpipewireformat.c @@ -302,6 +302,13 @@ get_nth_rectangle (const GValue *width, const GValue *height, int idx, struct sp r->width = gst_value_get_int_range_max (width); r->height = gst_value_get_int_range_max (height); return true; + } else if (idx == 3) { + r->width = gst_value_get_int_range_step (width); + r->height = gst_value_get_int_range_step (height); + if (r->width > 1 || r->height > 1) + return true; + else + return false; } } else if (wt == GST_TYPE_LIST && ht == GST_TYPE_LIST) { GArray *wa = g_value_peek_pointer (width);