diff options
author | Vineeth T M <vineeth.tm@samsung.com> | 2014-10-20 11:57:38 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2014-10-24 20:46:56 +0100 |
commit | fdf39a8fce4eb3eca2c858256f64250943999d6b (patch) | |
tree | ae645f8667215e9f197ce17b297ccda64ac87a96 | |
parent | c56ae189f10a79e4672feedf30e53ca17199c683 (diff) |
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
-rw-r--r-- | gst/videobox/gstvideobox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c index bfec65af9..e03edb118 100644 --- a/gst/videobox/gstvideobox.c +++ b/gst/videobox/gstvideobox.c @@ -2750,7 +2750,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 { |