[vlc-commits] direct3d9: do not call SendEventPicturesInvalid if it's not supported

Steve Lhomme git at videolan.org
Tue Nov 7 19:23:35 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Nov  7 16:02:02 2017 +0100| [b839a2d3b3aafa38cf65630dd5d875cb6049196b] | committer: Jean-Baptiste Kempf

direct3d9: do not call SendEventPicturesInvalid if it's not supported

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.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b839a2d3b3aafa38cf65630dd5d875cb6049196b
---

 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 */



More information about the vlc-commits mailing list