From b601bf0df672d7239ab12742199705770dfbfd6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Mon, 27 Jul 2015 18:49:13 +0200 Subject: [PATCH] vaapidecode: don't lost GLTextureUpload on seek MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When seeking, the decoder is reset, but the buffer pool is not re-negotiated, but in reset_full() the code forgets if the negotiated buffer pool has the GLTextureUpload meta. The decoder knows that GLTextureUpload meta was negotiated in decide_allocation(), but this method is not called when seeking. Signed-off-by: Víctor Manuel Jáquez Leal https://bugzilla.gnome.org/show_bug.cgi?id=752929 --- gst/vaapi/gstvaapidecode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index 93d3a5a61c..58d5f38d10 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -700,8 +700,6 @@ gst_vaapidecode_reset_full (GstVaapiDecode * decode, GstCaps * caps, { GstVaapiCodec codec; - decode->has_texture_upload_meta = FALSE; - /* Reset tracked frame size */ decode->current_frame_size = 0;