gst/mpegaudioparse/gstmpegaudioparse.c: Don't post SEGMENT_START messages on the...
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 13 Dec 2007 11:20:11 +0000 (11:20 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 13 Dec 2007 11:20:11 +0000 (11:20 +0000)
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
common
gst/mpegaudioparse/gstmpegaudioparse.c

index 99321ffb4bb127798cd62dc95978254d2016184d..e5056c8b7d4bbd21868483b7dd3251a48c170e21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-12-13  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * 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  <slomo@circular-chaos.org>
 
        * configure.ac:
diff --git a/common b/common
index 423e2ea96b5f79281f4dd20d734bd968b3d95e89..fb7ab03319930496e922173d54f6dfccfff6f357 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit 423e2ea96b5f79281f4dd20d734bd968b3d95e89
+Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357
index b5e751e7a7b9990d9d22156fc3bfe15399e49fd9..69591ade1e9a187cf074f265059e82cf19fdcada 100644 (file)
@@ -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,