mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
oggmux: Reset the segment on flush-stop events and when going back to READY
This commit is contained in:
parent
d1c74779f9
commit
fc56c76773
1 changed files with 6 additions and 0 deletions
|
@ -351,6 +351,10 @@ gst_ogg_mux_sink_event (GstPad * pad, GstEvent * event)
|
|||
|
||||
break;
|
||||
}
|
||||
case GST_EVENT_FLUSH_STOP:{
|
||||
gst_segment_init (ogg_pad->segment, GST_FORMAT_UNDEFINED);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ret = TRUE;
|
||||
break;
|
||||
|
@ -1744,6 +1748,8 @@ gst_ogg_mux_clear_collectpads (GstCollectPads * collect)
|
|||
gst_buffer_unref (oggpad->next_buffer);
|
||||
oggpad->next_buffer = NULL;
|
||||
}
|
||||
|
||||
gst_segment_init (oggpad->segment, GST_FORMAT_UNDEFINED);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue