[vlc-commits] vlc_vout_display: use VLC_DEPRECATED_ENUM for enumerators

Steve Lhomme git at videolan.org
Mon Aug 7 15:25:17 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Mon Aug  7 13:22:32 2017 +0200| [4c72962dfec0e848cca5afa3d323ab7edea121b5] | committer: Hugo Beauzée-Luyssen

vlc_vout_display: use VLC_DEPRECATED_ENUM for enumerators

It's not available on all GCCs

Fix regression from
057e5729c51c693e255c9348046c103b75bdb19c,
40c96414f343d2fd939cf3053d9dc80930891c7e,
c900e39cf935b77f0f47383eb95936297c650651

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 include/vlc_vout_display.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h
index 27566b776e..0cec353def 100644
--- a/include/vlc_vout_display.h
+++ b/include/vlc_vout_display.h
@@ -139,7 +139,7 @@ typedef struct {
 enum {
     /* Hide the mouse. It will be sent when
      * vout_display_t::info.b_hide_mouse is false */
-    VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED,
+    VOUT_DISPLAY_HIDE_MOUSE VLC_DEPRECATED_ENUM,
 
     /* Ask to reset the internal buffers after a VOUT_DISPLAY_EVENT_PICTURES_INVALID
      * request.
@@ -149,10 +149,10 @@ enum {
 #if defined(_WIN32) || defined(__OS2__)
     /* Ask the module to acknowledge/refuse the fullscreen state change after
      * being requested (externally or by VOUT_DISPLAY_EVENT_FULLSCREEN */
-    VOUT_DISPLAY_CHANGE_FULLSCREEN VLC_DEPRECATED,     /* bool fs */
+    VOUT_DISPLAY_CHANGE_FULLSCREEN VLC_DEPRECATED_ENUM,     /* bool fs */
     /* Ask the module to acknowledge/refuse the window management state change
      * after being requested externally or by VOUT_DISPLAY_WINDOW_STATE */
-    VOUT_DISPLAY_CHANGE_WINDOW_STATE VLC_DEPRECATED,   /* unsigned state */
+    VOUT_DISPLAY_CHANGE_WINDOW_STATE VLC_DEPRECATED_ENUM,   /* unsigned state */
 #endif
     /* Ask the module to acknowledge/refuse the display size change requested
      * (externally or by VOUT_DISPLAY_EVENT_DISPLAY_SIZE) */



More information about the vlc-commits mailing list