]> git.sesse.net Git - vlc/commitdiff
Export the fact that a playlist item is read only or can be deleted
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 18 Mar 2006 00:45:55 +0000 (00:45 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 18 Mar 2006 00:45:55 +0000 (00:45 +0000)
modules/control/http/util.c

index 9d9ddce4374ee611975edea980f2698ba1fe9164..e2d77f76155c9c8ec3f81354c4ca4e7325d63f1c 100644 (file)
@@ -449,6 +449,15 @@ void E_(PlaylistListNode)( intf_thread_t *p_intf, playlist_t *p_pl,
             sprintf( value, "%d", i_depth );
             E_(mvar_AppendNewVar)( itm, "depth", value );
 
+            if( p_node->i_flags & PLAYLIST_RO_FLAG )
+            {
+                E_(mvar_AppendNewVar)( itm, "ro", "ro" );
+            }
+            else
+            {
+                E_(mvar_AppendNewVar)( itm, "ro", "rw" );
+            }
+
             E_(mvar_AppendVar)( s, itm );
         }
         else
@@ -475,6 +484,15 @@ void E_(PlaylistListNode)( intf_thread_t *p_intf, playlist_t *p_pl,
             sprintf( value, "%d", i_depth );
             E_(mvar_AppendNewVar)( itm, "depth", value );
 
+            if( p_node->i_flags & PLAYLIST_RO_FLAG )
+            {
+                E_(mvar_AppendNewVar)( itm, "ro", "ro" );
+            }
+            else
+            {
+                E_(mvar_AppendNewVar)( itm, "ro", "rw" );
+            }
+
             E_(mvar_AppendVar)( s, itm );
 
             for (i_child = 0 ; i_child < p_node->i_children ; i_child++)