videobox: critical error when element properties set as max/min
left, right, top, bottom can be set from range of -2147483648 to 2147483647 when i launch the videobox element with that values, it gives a critical error (gst-check-1.0:29869): GStreamer-CRITICAL **: gst_value_set_int_range_step: assertion 'start < end' failed This happens because min cannot be equal to max. https://bugzilla.gnome.org/show_bug.cgi?id=738838
This commit is contained in:
parent
f3fec86bc9
commit
1131db8c1f
@ -2746,7 +2746,7 @@ gst_video_box_transform_dimension_value (const GValue * src_val,
|
|||||||
|
|
||||||
min = gst_video_box_transform_dimension (min, delta);
|
min = gst_video_box_transform_dimension (min, delta);
|
||||||
max = gst_video_box_transform_dimension (max, delta);
|
max = gst_video_box_transform_dimension (max, delta);
|
||||||
if (min > max) {
|
if (min >= max) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
g_value_unset (dest_val);
|
g_value_unset (dest_val);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user