gstpipewireformat: Fully handle SPA_CHOICE_Step

The step value was not used.
This commit is contained in:
Robert Mader 2023-01-05 21:18:13 +01:00 committed by Wim Taymans
parent 0f4fcd63ac
commit be2757c121

View file

@ -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->width = gst_value_get_int_range_max (width);
r->height = gst_value_get_int_range_max (height); r->height = gst_value_get_int_range_max (height);
return true; 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) { } else if (wt == GST_TYPE_LIST && ht == GST_TYPE_LIST) {
GArray *wa = g_value_peek_pointer (width); GArray *wa = g_value_peek_pointer (width);