mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gstquery: Only fill the start/stop values of the buffering ranges if a non-NULL pointer was provided
This commit is contained in:
parent
9ef1c47079
commit
36e1ad94e1
1 changed files with 4 additions and 2 deletions
|
@ -1400,8 +1400,10 @@ gst_query_parse_nth_buffering_range (GstQuery * query, guint index,
|
||||||
ranges = (GValueArray *) g_value_get_boxed (value);
|
ranges = (GValueArray *) g_value_get_boxed (value);
|
||||||
range_value = g_value_array_get_nth (ranges, index);
|
range_value = g_value_array_get_nth (ranges, index);
|
||||||
if (range_value) {
|
if (range_value) {
|
||||||
*start = gst_value_get_int64_range_min (range_value);
|
if (start)
|
||||||
*stop = gst_value_get_int64_range_max (range_value);
|
*start = gst_value_get_int64_range_min (range_value);
|
||||||
|
if (stop)
|
||||||
|
*stop = gst_value_get_int64_range_max (range_value);
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue