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:
Vineeth T M 2014-10-20 11:57:38 +05:30 committed by Sebastian Dröge
parent f3fec86bc9
commit 1131db8c1f

View file

@ -2746,7 +2746,7 @@ gst_video_box_transform_dimension_value (const GValue * src_val,
min = gst_video_box_transform_dimension (min, delta);
max = gst_video_box_transform_dimension (max, delta);
if (min > max) {
if (min >= max) {
ret = FALSE;
g_value_unset (dest_val);
} else {