From 6a43c1f9c706902db6075922ba35867b4ad5dc73 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 5 Sep 2012 11:41:35 +0200 Subject: [PATCH] oggdemux: send GAP event ... in stead of old update newsegment event. --- ext/ogg/gstoggdemux.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index 413bb0c..4844ff1 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -4398,14 +4398,8 @@ gst_ogg_demux_sync_streams (GstOggDemux * ogg) stream->position = cur; -#if 0 - ogg->segment.base += cur - stream->position; - /* advance stream time (FIXME: is this right, esp. time_pos?) */ gst_pad_push_event (GST_PAD_CAST (stream), - gst_event_new_new_segment (TRUE, ogg->segment.rate, - ogg->segment.applied_rate, - GST_FORMAT_TIME, stream->position, -1, stream->position)); -#endif + gst_event_new_gap (stream->position, cur - stream->position)); } } } -- 2.7.4