mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
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 <tim@centricular.com> https://bugzilla.gnome.org/show_bug.cgi?id=768991
This commit is contained in:
parent
44da322083
commit
714e3b9741
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue