From 714e3b9741eb61174c3138fc7f3b92f81faf5ea6 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 20 Jul 2016 11:47:48 +0100 Subject: [PATCH] oggdemux: fix unknown duration playing Ogg over HTTP MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 f84d0e0..e71bea8 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; } } } -- 2.7.4