gstquery: Only fill the start/stop values of the buffering ranges if a non-NULL pointer was provided

This commit is contained in:
Sebastian Dröge 2010-09-03 19:58:49 +02:00
parent 9ef1c47079
commit 36e1ad94e1

View file

@ -1400,8 +1400,10 @@ gst_query_parse_nth_buffering_range (GstQuery * query, guint index,
ranges = (GValueArray *) g_value_get_boxed (value);
range_value = g_value_array_get_nth (ranges, index);
if (range_value) {
*start = gst_value_get_int64_range_min (range_value);
*stop = gst_value_get_int64_range_max (range_value);
if (start)
*start = gst_value_get_int64_range_min (range_value);
if (stop)
*stop = gst_value_get_int64_range_max (range_value);
ret = TRUE;
}