vo_vdpau: fix possible crash after preemption
commit0a1fc392b4cc45985d95eb6563f496a74bb3b306
authorUoti Urpala <uau@mplayer2.org>
Thu, 12 Jul 2012 16:04:57 +0000 (12 19:04 +0300)
committerUoti Urpala <uau@mplayer2.org>
Mon, 16 Jul 2012 18:08:42 +0000 (16 21:08 +0300)
tree62f01cffd5864c1d1f627db499d2e5999d863246
parent2ba8b91a97e7e873a522f365e41a293af980c91a
vo_vdpau: fix possible crash after preemption

Preemption recovery code could change the vc->vdp pointer when
recreating the VDPAU device. However, some other code cached the value
of vc->vdp in local variables over calls to handle_preemption(), and
could then crash when using the stale value later. Make the device
creation code keep the same vc->vdp instead of freeing and
reallocating it, so that the old pointer value is never invalidated
now.
libvo/vo_vdpau.c