Changeset 2a9a3965078ee0451c8102119f5d274d2ffd0a27

Show
Ignore:
Timestamp:
08/10/07 03:13:27 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1191806007 +0000
git-parent:

[7de663b7317b3514f4a6c26c7685da9403da7c02]

git-author:
Rafaël Carré <funman@videolan.org> 1191806007 +0000
Message:

audioscrobbler: we are already in our own thread, no need to create another one

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/audioscrobbler.c

    r7de663b r2a9a396  
    104104static void Close           ( vlc_object_t * ); 
    105105static void Unload          ( intf_thread_t * ); 
    106  
    107106static void Run             ( intf_thread_t * ); 
    108 static void Main            ( intf_thread_t * ); 
    109107 
    110108static int ItemChange       ( vlc_object_t *, const char *, vlc_value_t, 
     
    252250} 
    253251 
    254  
    255 /**************************************************************************** 
    256  * Run : create Main() thread 
    257  * **************************************************************************/ 
     252/***************************************************************************** 
     253 * Run : call Handshake() then submit songs 
     254 *****************************************************************************/ 
    258255static void Run( intf_thread_t *p_intf ) 
    259 { 
    260     if( vlc_thread_create( p_intf, "Audioscrobbler", Main, 0, VLC_TRUE ) ) 
    261         msg_Err( p_intf, "failed to create Audioscrobbler thread" ); 
    262 } 
    263  
    264 /***************************************************************************** 
    265  * Main : call Handshake() then submit songs 
    266  *****************************************************************************/ 
    267 static void Main( intf_thread_t *p_intf ) 
    268256{ 
    269257    char                    *psz_submit, *psz_submit_song, *psz_submit_tmp; 
     
    289277 
    290278        if( b_die ) 
     279        { 
     280            msg_Dbg( p_intf, "audioscrobbler is dying\n"); 
    291281            return; 
     282        } 
    292283 
    293284        /* handshake if needed */