]> git.sesse.net Git - vlc/commit
vdpau/chroma: fix corner case of corner case when changing device
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 17 Mar 2014 19:15:48 +0000 (21:15 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 17 Mar 2014 19:24:03 +0000 (21:24 +0200)
commit2ea9a9818e1d6ce5c27e261b4d0d5760f4dfd586
tree34bd7a51676ff7e45243a6979653794cf9576c99
parent17dd86ef1d3a6244b2817b14ca3b390bfc50201f
vdpau/chroma: fix corner case of corner case when changing device

To ensure the vdp_t instance pointers comparison is valid, the old and
new instances must be contemporary. Otherwise, the heap could put both
instances at the same memory address. So keep a reference to the old
device until after the comparison.
modules/hw/vdpau/chroma.c