mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
vtdec: fix switching from GLMemory to Sysmem
When renegotiating from GLMemory to Sysmem do teardown the texture_cache. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=766190
This commit is contained in:
parent
bf444301f9
commit
4a83686a57
1 changed files with 5 additions and 0 deletions
|
@ -284,6 +284,11 @@ gst_vtdec_negotiate (GstVideoDecoder * decoder)
|
|||
ret = gst_vtdec_create_session (vtdec, format);
|
||||
}
|
||||
|
||||
if (vtdec->texture_cache != NULL && !output_textures) {
|
||||
gst_video_texture_cache_free (vtdec->texture_cache);
|
||||
vtdec->texture_cache = NULL;
|
||||
}
|
||||
|
||||
if (ret && output_textures) {
|
||||
/* call this regardless of whether caps have changed or not since a new
|
||||
* local context could have become available
|
||||
|
|
Loading…
Reference in a new issue