mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
gstpipewireformat: Fully handle SPA_CHOICE_Step
The step value was not used.
This commit is contained in:
parent
0f4fcd63ac
commit
be2757c121
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue