summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-04-27 15:12:26 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:32 +0100
commit2d996a3ff49757e299ec6218604f19e499ac0782 (patch)
treef95fceb1228b704e57705655a57ef461f8658101
parent8c78a4850fa5bc1323fee6d47e6a9bd31d024f0e (diff)
downloadgst-plugins-bad-2d996a3ff49757e299ec6218604f19e499ac0782.tar.gz
gst-plugins-bad-2d996a3ff49757e299ec6218604f19e499ac0782.tar.bz2
gst-plugins-bad-2d996a3ff49757e299ec6218604f19e499ac0782.zip
vdpaumpegdec: clear the adapter when we reset the decoder
-rw-r--r--sys/vdpau/gstvdpmpegdecoder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vdpau/gstvdpmpegdecoder.c b/sys/vdpau/gstvdpmpegdecoder.c
index f13db895..5cc913b0 100644
--- a/sys/vdpau/gstvdpmpegdecoder.c
+++ b/sys/vdpau/gstvdpmpegdecoder.c
@@ -380,6 +380,8 @@ gst_vdp_mpeg_decoder_reset (GstVdpMpegDecoder * mpeg_dec)
gst_buffer_unref (mpeg_dec->f_buffer);
gst_vdp_mpeg_decoder_init_info (&mpeg_dec->vdp_info);
+
+ gst_adapter_clear (mpeg_dec->adapter);
}
static GstFlowReturn