[vlc-commits] video_output: Use the appropriate vout_display_ event wrappers

Hugo Beauzée-Luyssen git at videolan.org
Thu Jun 15 16:22:29 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jun 15 14:43:39 2017 +0200| [91fed327a3a6a2acaed909e5e6423d273cb2f8b6] | committer: Hugo Beauzée-Luyssen

video_output: Use the appropriate vout_display_ event wrappers

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

 src/video_output/video_output.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 1eae08dc0e..c666563dba 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1320,8 +1320,7 @@ static void ThreadChangeFullscreen(vout_thread_t *vout, bool fullscreen)
         vout_window_SetFullScreen(window, fullscreen);
     else
     if (vout->p->display.vd != NULL)
-        vout_display_SendEvent(vout->p->display.vd,
-                               VOUT_DISPLAY_EVENT_FULLSCREEN, fullscreen);
+        vout_display_SendEventFullscreen(vout->p->display.vd, fullscreen);
 }
 
 static void ThreadChangeWindowState(vout_thread_t *vout, unsigned state)
@@ -1333,8 +1332,7 @@ static void ThreadChangeWindowState(vout_thread_t *vout, unsigned state)
 #if defined(_WIN32) || defined(__OS2__)
     else /* FIXME: remove this event */
     if (vout->p->display.vd != NULL)
-        vout_display_SendEvent(vout->p->display.vd,
-                               VOUT_DISPLAY_EVENT_WINDOW_STATE, state);
+        vout_display_SendWindowState(vout->p->display.vd, state);
 #endif
 }
 



More information about the vlc-commits mailing list