[vlc-devel] [PATCH 19/40] playlist: rationalize item flags

Rémi Denis-Courmont remi at remlab.net
Sun May 14 17:45:49 CEST 2017


Item flags are 8-bits; that´s two nibbles.
---
 include/vlc_playlist.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 1e076c7b4d..dc8dc12d87 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -136,10 +136,10 @@ struct playlist_item_t
 };
 
 typedef enum {
-    PLAYLIST_DBL_FLAG          = 0x0004,  /**< Is it disabled ? */
-    PLAYLIST_RO_FLAG           = 0x0008,  /**< Write-enabled ? */
-    PLAYLIST_SUBITEM_STOP_FLAG = 0x0040,  /**< Must playlist stop if the item gets subitems ?*/
-    PLAYLIST_NO_INHERIT_FLAG   = 0x0080,  /**< Childs must not inherit flags from parent node */
+    PLAYLIST_DBL_FLAG          = 0x04,  /**< Is it disabled ? */
+    PLAYLIST_RO_FLAG           = 0x08,  /**< Write-enabled ? */
+    PLAYLIST_SUBITEM_STOP_FLAG = 0x40,  /**< Must playlist stop if the item gets subitems ?*/
+    PLAYLIST_NO_INHERIT_FLAG   = 0x80,  /**< Will children inherit flags the R/O flag ? */
 } playlist_item_flags_e;
 
 /** Playlist status */
-- 
2.11.0



More information about the vlc-devel mailing list