Do not recreate already initialized codecs
authorArmin Novak <armin.novak@thincast.com>
Fri, 5 Feb 2021 10:06:23 +0000 (11:06 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
commit377c61648f14c41b25f4c2bff12d5f6a102a18e3
treef3c13e21f39c8dd71183c55cc843e460f50ff960
parent176893e6daab96d94d21052f8ad592b31bba45c5
Do not recreate already initialized codecs

GFX and SurfaceBits commands share a common codec backend.
Recreating all codec context on GFX initialization will break
clients that are decoding SurfaceBits codec while having the GFX
channel initialized.

(cherry picked from commit 91a6ac131370c48a742b8bcc58ad188bb7ed60f8)
libfreerdp/core/codecs.c
libfreerdp/gdi/gfx.c