From 3864e0349bb29a7a5bb4ff5961c2e72a14500811 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Fri, 5 Jun 2009 17:53:16 +0200 Subject: vdpaumpegdec: don't send the EVENT_NEWSEGMENT downstream if we're seeking --- sys/vdpau/gstvdpmpegdecoder.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c index b6964175..db01527d 100644 --- a/sys/vdpau/gstvdpmpegdecoder.c +++ b/sys/vdpau/gstvdpmpegdecoder.c @@ -893,8 +893,15 @@ gst_vdp_mpeg_decoder_sink_event (GstPad * pad, GstEvent * event) stop, position); } + /* if we seek ourselves we don't push out a newsegment now since we + * use the calculated timestamp of the first frame for this */ + if (mpeg_dec->seeking) { + gst_event_unref (event); + return TRUE; + } + convert_error: - gst_pad_push_event (mpeg_dec->src, event); + res = gst_pad_push_event (mpeg_dec->src, event); break; } -- cgit v1.2.1