]> git.sesse.net Git - vlc/commitdiff
Remove unsafe use of b_dead.
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 14 Sep 2008 11:41:53 +0000 (14:41 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 14 Sep 2008 11:41:53 +0000 (14:41 +0300)
Fortunately, var_DelCallback does the job properly already.

modules/misc/audioscrobbler.c

index 3a3a1b3a187c07bbcbfec25e72a8ee15d34b6005..85746be352e0c46fe7e3a66d680d2f0caffb8f48 100644 (file)
@@ -227,7 +227,6 @@ static void Close( vlc_object_t *p_this )
         pl_Release( p_intf );
     }
 
-    p_intf->b_dead = true;
     int i;
     for( i = 0; i < p_sys->i_songs; i++ )
         DeleteSong( &p_sys->p_queue[i] );
@@ -470,9 +469,6 @@ static int PlayingChange( vlc_object_t *p_this, const char *psz_var,
 
     VLC_UNUSED( p_this ); VLC_UNUSED( psz_var );
 
-    if( p_intf->b_dead )
-        return VLC_SUCCESS;
-
     if( p_sys->b_meta_read == false && newval.i_int >= PLAYING_S )
     {
         ReadMetaData( p_intf );
@@ -505,9 +501,6 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
     VLC_UNUSED( p_this ); VLC_UNUSED( psz_var );
     VLC_UNUSED( oldval ); VLC_UNUSED( newval );
 
-    if( p_intf->b_dead )
-        return VLC_SUCCESS;
-
     p_sys->b_state_cb       = false;
     p_sys->b_meta_read      = false;
     p_sys->b_submit         = false;