[vlc-commits] direct3d9: don't set pictures as invalid if it's not supported
Steve Lhomme
git at videolan.org
Thu Nov 15 14:19:55 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Nov 15 09:11:22 2018 +0100| [ba310445adbf9c50cb133e1e0bc8f31175a860d9] | committer: Steve Lhomme
direct3d9: don't set pictures as invalid if it's not supported
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba310445adbf9c50cb133e1e0bc8f31175a860d9
---
modules/video_output/win32/direct3d9.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 1a9cb1ff58..611a196fd3 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -548,7 +548,8 @@ 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) {
- vout_display_SendEventPicturesInvalid(vd);
+ if (vd->info.has_pictures_invalid)
+ vout_display_SendEventPicturesInvalid(vd);
sys->reset_device = true;
sys->lost_not_ready = false;
}
More information about the vlc-commits
mailing list