From: Cyril Deguet Date: Sat, 13 Dec 2003 17:46:07 +0000 (+0000) Subject: * src/playlist/sort.c: set "intf-change" after sorting the playlist X-Git-Tag: 0.7.0~122 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4fac715a31556895f293f9ca1dca8a391f99d3c2;p=vlc * src/playlist/sort.c: set "intf-change" after sorting the playlist --- diff --git a/src/playlist/sort.c b/src/playlist/sort.c index 92ef5e9422..fd7ff073f5 100644 --- a/src/playlist/sort.c +++ b/src/playlist/sort.c @@ -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 * @@ -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; }