vaapidecode: don't lost GLTextureUpload on seek

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 <victorx.jaquez@intel.com>

https://bugzilla.gnome.org/show_bug.cgi?id=752929
This commit is contained in:
Víctor Manuel Jáquez Leal 2015-07-27 18:49:13 +02:00
parent c76fe74297
commit b601bf0df6

View file

@ -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;