[vlc-commits] d3d9: don't use the invalid picture flag
Rémi Denis-Courmont
git at videolan.org
Sat Jun 15 04:33:00 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Jun 14 07:44:22 2019 +0300| [4f68a3e2e0a552b504d0663beadbb8edd55adc28] | committer: Rémi Denis-Courmont
d3d9: don't use the invalid picture flag
This was meant to be written, not read, by the display.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f68a3e2e0a552b504d0663beadbb8edd55adc28
---
modules/video_output/win32/direct3d9.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index e34b5416c2..da4f4a8e7c 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -1282,7 +1282,7 @@ static void Prepare(vout_display_t *vd, picture_t *picture,
HRESULT hr = IDirect3DDevice9_TestCooperativeLevel(p_d3d9_dev->dev);
if (FAILED(hr)) {
if (hr == D3DERR_DEVICENOTRESET && !sys->reset_device) {
- if (vd->info.has_pictures_invalid)
+ if (!is_d3d9_opaque(picture->fmt.i_chroma))
vout_display_SendEventPicturesInvalid(vd);
sys->reset_device = true;
sys->lost_not_ready = false;
More information about the vlc-commits
mailing list