mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
oggdemux: Only track time for initialized streams
in push-mode we only can track time (or most operations on streams for that matter) if the underlying GstOggMap was properly initialized.
This commit is contained in:
parent
c3006b17d1
commit
33dfed5af8
1 changed files with 1 additions and 1 deletions
|
@ -1652,7 +1652,7 @@ gst_ogg_pad_handle_push_mode_state (GstOggPad * pad, ogg_page * page)
|
|||
ogg_int64_t granpos = ogg_page_granulepos (page);
|
||||
|
||||
GST_PUSH_LOCK (ogg);
|
||||
if (granpos >= 0) {
|
||||
if (granpos >= 0 && pad->have_type) {
|
||||
if (ogg->push_start_time == GST_CLOCK_TIME_NONE) {
|
||||
ogg->push_start_time =
|
||||
gst_ogg_stream_get_start_time_for_granulepos (&pad->map, granpos);
|
||||
|
|
Loading…
Reference in a new issue