summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-06-05 17:53:16 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:42 +0100
commit3864e0349bb29a7a5bb4ff5961c2e72a14500811 (patch)
treef9b3cd1355fe959eccba57d0426b5885817bea52 /sys
parent7316cfa186322a4b3c2e6df558a41e1ecc8c6e91 (diff)
downloadgst-plugins-bad-3864e0349bb29a7a5bb4ff5961c2e72a14500811.tar.gz
gst-plugins-bad-3864e0349bb29a7a5bb4ff5961c2e72a14500811.tar.bz2
gst-plugins-bad-3864e0349bb29a7a5bb4ff5961c2e72a14500811.zip
vdpaumpegdec: don't send the EVENT_NEWSEGMENT downstream if we're seeking
Diffstat (limited to 'sys')
-rw-r--r--sys/vdpau/gstvdpmpegdecoder.c9
1 files changed, 8 insertions, 1 deletions
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;
}