From c551cc7cc347f279474ddc427930f206f898167a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 11 Aug 2014 17:15:24 +0300 Subject: [PATCH] vaapidecode: reset decoder_finish variable after stopping the decoder thread Otherwise the element is not usable again after draining/EOS. https://bugzilla.gnome.org/show_bug.cgi?id=734616 --- gst/vaapi/gstvaapidecode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 11951d469f..15620a2d29 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -510,6 +510,7 @@ gst_vaapidecode_finish(GstVideoDecoder *vdec) gst_pad_stop_task(GST_VAAPI_PLUGIN_BASE_SRC_PAD(decode)); GST_VIDEO_DECODER_STREAM_LOCK(vdec); } + decode->decoder_finish = FALSE; return ret; }