From b0013e1037358d109fd4491e6908a1be029cf25f Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 20 Jul 2016 11:47:48 +0100 Subject: oggdemux: fix unknown duration playing Ogg over HTTP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the duration is not known from the chain, it might be known by the startup seek. This fixes failure to seek. Merged with a patch from Tim-Philipp Müller https://bugzilla.gnome.org/show_bug.cgi?id=768991 --- ext/ogg/gstoggdemux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index bd129ab07..fd0c1d214 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -344,7 +344,9 @@ gst_ogg_pad_src_query (GstPad * pad, GstObject * parent, GstQuery * query) else stop = MAX (idx_time, stop); } else { - stop = -1; /* we've no clue, sadly, without seeking */ + stop = ogg->push_time_length; + if (stop == -1) + stop = ogg->total_time; } } } -- cgit v1.2.1