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.
This commit is contained in:
Sebastian Dröge 2007-12-13 11:20:11 +00:00
parent 57d0b04de6
commit 2e915caedb
3 changed files with 8 additions and 11 deletions

View file

@ -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:

2
common

@ -1 +1 @@
Subproject commit 423e2ea96b5f79281f4dd20d734bd968b3d95e89
Subproject commit fb7ab03319930496e922173d54f6dfccfff6f357

View 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,