From 2e915caedb0b0082e1d553fedc91ebec1886ed9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 13 Dec 2007 11:20:11 +0000 Subject: [PATCH] gst/mpegaudioparse/gstmpegaudioparse.c: Don't post SEGMENT_START messages on the bus, only the element driving the pi... Original commit message from CVS: * gst/mpegaudioparse/gstmpegaudioparse.c: (gst_mp3parse_sink_event), (mp3parse_handle_seek): Don't post SEGMENT_START messages on the bus, only the element driving the pipeline should do that. --- ChangeLog | 7 +++++++ common | 2 +- gst/mpegaudioparse/gstmpegaudioparse.c | 10 ---------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index 99321ffb4b..e5056c8b7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-12-13 Sebastian Dröge + + * gst/mpegaudioparse/gstmpegaudioparse.c: + (gst_mp3parse_sink_event), (mp3parse_handle_seek): + Don't post SEGMENT_START messages on the bus, only the element + driving the pipeline should do that. + 2007-12-09 Sebastian Dröge * configure.ac: diff --git a/common b/common index 423e2ea96b..fb7ab03319 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 423e2ea96b5f79281f4dd20d734bd968b3d95e89 +Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357 diff --git a/gst/mpegaudioparse/gstmpegaudioparse.c b/gst/mpegaudioparse/gstmpegaudioparse.c index b5e751e7a7..69591ade1e 100644 --- a/gst/mpegaudioparse/gstmpegaudioparse.c +++ b/gst/mpegaudioparse/gstmpegaudioparse.c @@ -391,11 +391,6 @@ gst_mp3parse_sink_event (GstPad * pad, GstEvent * event) g_slist_delete_link (mp3parse->pending_accurate_seeks, node); g_mutex_unlock (mp3parse->pending_accurate_seeks_lock); - if (s->flags & GST_SEEK_FLAG_SEGMENT) { - gst_element_post_message (GST_ELEMENT_CAST (mp3parse), - gst_message_new_segment_start (GST_OBJECT_CAST (mp3parse), - s->format, s->last_stop)); - } res = gst_pad_push_event (mp3parse->srcpad, event); return res; @@ -1376,11 +1371,6 @@ mp3parse_handle_seek (GstMPEGAudioParse * mp3parse, GstEvent * event) event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, cur_type, byte_cur, stop_type, byte_stop); - if (flags & GST_SEEK_FLAG_SEGMENT) { - gst_element_post_message (GST_ELEMENT_CAST (mp3parse), - gst_message_new_segment_start (GST_OBJECT_CAST (mp3parse), - GST_FORMAT_TIME, cur)); - } return gst_pad_push_event (mp3parse->sinkpad, event); no_pos: GST_DEBUG_OBJECT (mp3parse,