]> git.sesse.net Git - vlc/commitdiff
* src/playlist/sort.c: set "intf-change" after sorting the playlist
authorCyril Deguet <asmax@videolan.org>
Sat, 13 Dec 2003 17:46:07 +0000 (17:46 +0000)
committerCyril Deguet <asmax@videolan.org>
Sat, 13 Dec 2003 17:46:07 +0000 (17:46 +0000)
src/playlist/sort.c

index 92ef5e9422a6eee8b966376f2c9655ac7f296f6d..fd7ff073f5256912c0d7e1205a9fce17a1696db8 100644 (file)
@@ -2,7 +2,7 @@
  * sort.c : Playlist sorting functions
  *****************************************************************************
  * Copyright (C) 1999-2001 VideoLAN
- * $Id: sort.c,v 1.2 2003/11/26 10:45:21 zorglub Exp $
+ * $Id: sort.c,v 1.3 2003/12/13 17:46:07 asmax Exp $
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
  *
@@ -41,6 +41,8 @@ int playlist_Sort( playlist_t * p_playlist , int i_mode, int i_type )
 {
     int i , i_small , i_position;
     playlist_item_t *p_temp;
+    vlc_value_t val;
+    val.b_bool = VLC_TRUE;
 
     vlc_mutex_lock( &p_playlist->object_lock );
 
@@ -62,6 +64,9 @@ int playlist_Sort( playlist_t * p_playlist , int i_mode, int i_type )
         }
         vlc_mutex_unlock( &p_playlist->object_lock );
 
+        /* Notify the interfaces (XXX: use a different variable) */
+        var_Set( p_playlist, "intf-change", val );
+
         return 0;
     }
 
@@ -106,5 +111,8 @@ int playlist_Sort( playlist_t * p_playlist , int i_mode, int i_type )
     }
     vlc_mutex_unlock( &p_playlist->object_lock );
 
+    /* Notify the interfaces (XXX: use a different variable) */
+    var_Set( p_playlist, "intf-change", val );
+
     return 0;
 }