From 74c7524b49dc71dced47ca5821705d93a9038fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 5 Jul 2012 13:06:04 +0200 Subject: [PATCH] gst: Implement segment-done event --- ext/ogg/gstoggdemux.c | 5 +++++ gst-libs/gst/tag/gsttagdemux.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 97d12ccdc9..cbdf182b4e 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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"); diff --git a/gst-libs/gst/tag/gsttagdemux.c b/gst-libs/gst/tag/gsttagdemux.c index 957ef0966d..1eead10a15 100644 --- a/gst-libs/gst/tag/gsttagdemux.c +++ b/gst-libs/gst/tag/gsttagdemux.c @@ -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; }