summaryrefslogtreecommitdiffstats
path: root/gst/flv/gstflvparse.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-10-27 09:10:54 +0000
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-05-12 21:20:57 +0200
commitf55a5aa02486714d65067b7d9d70c60058fd12c8 (patch)
treeda42fe3904b6e10699fb3d9a68709d2cf16c0430 /gst/flv/gstflvparse.c
parent6c61c0b78dc7f7da1a97dc5c4c18476caadd705b (diff)
[MOVED FROM BAD 32/57] gst/flv/: Close the currently playing segment from the streaming thread instead of the thread where the seek event is...
Original commit message from CVS: * gst/flv/gstflvdemux.c: (gst_flv_demux_cleanup), (gst_flv_demux_handle_seek_pull), (gst_flv_demux_dispose): * gst/flv/gstflvdemux.h: * gst/flv/gstflvparse.c: (gst_flv_parse_tag_audio), (gst_flv_parse_tag_video): Close the currently playing segment from the streaming thread instead of the thread where the seek event is handled.
Diffstat (limited to 'gst/flv/gstflvparse.c')
-rw-r--r--gst/flv/gstflvparse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/flv/gstflvparse.c b/gst/flv/gstflvparse.c
index 16c83ec3..b68edd68 100644
--- a/gst/flv/gstflvparse.c
+++ b/gst/flv/gstflvparse.c
@@ -699,6 +699,10 @@ gst_flv_parse_tag_audio (GstFLVDemux * demux, const guint8 * data,
/* Do we need a newsegment event ? */
if (G_UNLIKELY (demux->audio_need_segment)) {
+ if (demux->close_seg_event)
+ gst_pad_push_event (demux->audio_pad,
+ gst_event_ref (demux->close_seg_event));
+
if (!demux->new_seg_event) {
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,
@@ -1007,6 +1011,10 @@ gst_flv_parse_tag_video (GstFLVDemux * demux, const guint8 * data,
/* Do we need a newsegment event ? */
if (G_UNLIKELY (demux->video_need_segment)) {
+ if (demux->close_seg_event)
+ gst_pad_push_event (demux->video_pad,
+ gst_event_ref (demux->close_seg_event));
+
if (!demux->new_seg_event) {
GST_DEBUG_OBJECT (demux, "pushing newsegment from %"
GST_TIME_FORMAT " to %" GST_TIME_FORMAT,