[vlc-devel] [PATCH 3/3] direct3d9: do not call SendEventPicturesInvalid if it's not supported

Steve Lhomme robux4 at videolabs.io
Tue Nov 7 16:02:02 CET 2017


For now using hardware acceleration won't allow using the wallpaper mode. Since
it reopens the device completely, the decoder loses the ties with with the
previous one and should be restarted from scratch.
---
 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 afe425edcd..b8d292dec9 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -670,7 +670,8 @@ static void Manage (vout_display_t *vd)
 
     if (ch_desktop) {
         sys->reopen_device = true;
-        vout_display_SendEventPicturesInvalid(vd);
+        if (vd->info.has_pictures_invalid)
+            vout_display_SendEventPicturesInvalid(vd);
     }
 
     /* Position Change */
-- 
2.14.2



More information about the vlc-devel mailing list