From 4a7ecfb81482c873dc7b97c65dc601abdfbdc9fa Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 25 May 2007 10:44:12 +0000 Subject: gst/: Handle and adjust new-segment events so that downstream really sees a stream with the tag pieces stripped off t... Original commit message from CVS: * gst/id3demux/gstid3demux.c: (gst_id3demux_reset), (gst_id3demux_send_new_segment), (gst_id3demux_chain), (gst_id3demux_sink_event): * gst/id3demux/gstid3demux.h: * gst/apetag/gsttagdemux.c: (gst_tag_demux_reset), (gst_tag_demux_chain), (gst_tag_demux_sink_event), (gst_tag_demux_send_new_segment): Handle and adjust new-segment events so that downstream really sees a stream with the tag pieces stripped off the front and back. Fixes strangeness in seeking when mp3 decoders use the new-segment byte position to estimate their current playback position timestamp and then the arriving buffers don't match up. --- gst/id3demux/gstid3demux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/id3demux/gstid3demux.h') diff --git a/gst/id3demux/gstid3demux.h b/gst/id3demux/gstid3demux.h index f8246ad4..7f9e18fd 100644 --- a/gst/id3demux/gstid3demux.h +++ b/gst/id3demux/gstid3demux.h @@ -65,6 +65,10 @@ struct _GstID3Demux GstTagList *event_tags; GstTagList *parsed_tags; gboolean send_tag_event; + + GstSegment segment; + gboolean need_newseg; + gboolean newseg_update; }; struct _GstID3DemuxClass -- cgit