From eefe7ad28bceccd509d389dc4dba465467231fb1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 3 May 2016 13:56:11 +0200 Subject: vo_opengl: vdpau: fix certain cases of preemption recovery failures The vdpau_mixer could fail to be recreated properly if preemption occured at some point before playback initialization (like when using --hwdec-preload and the opengl-cb API). Normally, the vdpau_mixer was supposed to be marked invalid when the components using it detect a preemption, e.g. in hwdec_vdpau.c. This one didn't mark the vdpau_mixer as invalid if preemption was detected in reinit(), only in map_image(). It's cleaner to detect preemption directly in the vdpau_mixer, which ensures it's always recreated correctly. --- video/out/opengl/hwdec_vdpau.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video/out/opengl') diff --git a/video/out/opengl/hwdec_vdpau.c b/video/out/opengl/hwdec_vdpau.c index b1d49622fc..99e5a1414a 100644 --- a/video/out/opengl/hwdec_vdpau.c +++ b/video/out/opengl/hwdec_vdpau.c @@ -49,7 +49,6 @@ static void mark_vdpau_objects_uninitialized(struct gl_hwdec *hw) struct priv *p = hw->priv; p->vdp_surface = VDP_INVALID_HANDLE; - p->mixer->video_mixer = VDP_INVALID_HANDLE; p->mapped = false; } -- cgit v1.2.3