Commit b0013e10 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h Committed by Sebastian Dröge

oggdemux: fix unknown duration playing Ogg over HTTP

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 <>
parent e8ae7e52
......@@ -344,7 +344,9 @@ gst_ogg_pad_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment