Changeset b81ff26d35c2a1a3c3c6ba6cb6fc8fad69c67869

Show
Ignore:
Timestamp:
14/09/07 02:00:17 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1189728017 +0000
git-parent:

[c74a75e96a5bf4752d1e3d6a697ddbde67435e61]

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

Do not try to connect to last.fm every second if the request fails, and server allows immediate retry

Files:

Legend:

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

    r3c80258 rb81ff26  
    450450 
    451451            /* record interval */ 
    452             p_buffer_pos = strstr( ( char * ) p_buffer, "INTERVAL" ); 
     452            p_buffer_pos = strstr( ( char * ) p_buffer, "INTERVAL " ); 
    453453            if ( p_buffer_pos ) 
    454454            { 
     
    463463                /* woops, submission failed */ 
    464464                msg_Dbg( p_this, "%s", p_buffer_pos ); 
     465                /* Buggy last.fm server sometimes return INTERVAL 1 */ 
     466                p_sys->time_next_exchange += DEFAULT_INTERVAL; 
    465467                vlc_mutex_unlock ( &p_sys->lock ); 
    466468                continue;