mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gst: Implement segment-done event
This commit is contained in:
parent
9de1b170b3
commit
74c7524b49
2 changed files with 7 additions and 0 deletions
|
@ -4485,6 +4485,11 @@ pause:
|
|||
gst_message_set_seqnum (message, ogg->seqnum);
|
||||
|
||||
gst_element_post_message (GST_ELEMENT (ogg), message);
|
||||
|
||||
event = gst_event_new_segment_done (GST_FORMAT_TIME, stop);
|
||||
gst_event_set_seqnum (event, ogg->seqnum);
|
||||
gst_ogg_demux_send_event (ogg, event);
|
||||
event = NULL;
|
||||
} else {
|
||||
/* normal playback, send EOS to all linked pads */
|
||||
GST_LOG_OBJECT (ogg, "Sending EOS, at end of stream");
|
||||
|
|
|
@ -1252,6 +1252,8 @@ pause:
|
|||
gst_element_post_message (GST_ELEMENT_CAST (demux),
|
||||
gst_message_new_segment_done (GST_OBJECT_CAST (demux),
|
||||
GST_FORMAT_BYTES, stop));
|
||||
gst_pad_push_event (demux->priv->srcpad,
|
||||
gst_event_new_segment_done (GST_FORMAT_BYTES, stop));
|
||||
} else {
|
||||
push_eos = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue