mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
asfdemux: fix latency calculations
We need to check for -1 as an invalid timestamp, not 1.
This commit is contained in:
parent
af3ab2ae94
commit
8de1502c9b
1 changed files with 3 additions and 3 deletions
|
@ -3549,15 +3549,15 @@ gst_asf_demux_handle_src_query (GstPad * pad, GstQuery * query)
|
|||
GST_TIME_ARGS (min), GST_TIME_ARGS (max));
|
||||
|
||||
GST_OBJECT_LOCK (demux);
|
||||
if (min != 1)
|
||||
if (min != -1)
|
||||
min += demux->latency;
|
||||
if (max != 1)
|
||||
if (max != -1)
|
||||
max += demux->latency;
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
|
||||
gst_query_set_latency (query, live, min, max);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
res = gst_pad_query_default (pad, query);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue