summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-02-11 13:56:48 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-02-11 13:56:48 +0100
commit7dc03df3ded9ce1edbb81d72fea0ceeba3252820 (patch)
treeacb40538602384e46b22fe1fe71ac47171311f59 /gst
parent5dd1a289061974ce635ae4d74147e6d19ac5d575 (diff)
Improve and fix LATENCY query handling
This now follows the design docs everywhere, especially the maximum latency handling. https://bugzilla.gnome.org/show_bug.cgi?id=744106
Diffstat (limited to 'gst')
-rw-r--r--gst/asfdemux/gstasfdemux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index 417e569c..ea2f14d8 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -4335,8 +4335,7 @@ gst_asf_demux_handle_src_query (GstPad * pad, GstObject * parent,
GST_TIME_ARGS (min), GST_TIME_ARGS (max));
GST_OBJECT_LOCK (demux);
- if (min != -1)
- min += demux->latency;
+ min += demux->latency;
if (max != -1)
max += demux->latency;
GST_OBJECT_UNLOCK (demux);