mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
oggdemux: survive skeleton finding length behind our backs in push mode
In push mode, we determine duration by doing a seek to the end of the stream. However, a skeleton stream with an index will cause the duration to be known already, and we end up never setting the push_time_duration variable which we use to know duration has been determined. https://bugzilla.gnome.org/show_bug.cgi?id=662049
This commit is contained in:
parent
e13ff2521c
commit
353153d079
1 changed files with 1 additions and 0 deletions
|
@ -1294,6 +1294,7 @@ gst_ogg_pad_handle_push_mode_state (GstOggPad * pad, ogg_page * page)
|
|||
GstFlowReturn res;
|
||||
|
||||
/* tell the pipeline we've just found out the duration */
|
||||
ogg->push_time_length = ogg->total_time;
|
||||
GST_INFO_OBJECT (ogg, "New duration found: %" GST_TIME_FORMAT,
|
||||
GST_TIME_ARGS (ogg->total_time));
|
||||
message =
|
||||
|
|
Loading…
Reference in a new issue