git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c74a75e
)
Do not try to connect to last.fm every second if the request fails, and server allows...
author
Rafaël Carré
<funman@videolan.org>
Fri, 14 Sep 2007 00:00:17 +0000
(
00:00
+0000)
committer
Rafaël Carré
<funman@videolan.org>
Fri, 14 Sep 2007 00:00:17 +0000
(
00:00
+0000)
modules/misc/audioscrobbler.c
patch
|
blob
|
history
diff --git
a/modules/misc/audioscrobbler.c
b/modules/misc/audioscrobbler.c
index
929b5d0
..
576baae
100644
(file)
--- a/
modules/misc/audioscrobbler.c
+++ b/
modules/misc/audioscrobbler.c
@@
-449,7
+449,7
@@
static void Main( intf_thread_t *p_this )
net_Close( i_post_socket );
/* record interval */
- p_buffer_pos = strstr( ( char * ) p_buffer, "INTERVAL" );
+ p_buffer_pos = strstr( ( char * ) p_buffer, "INTERVAL
" );
if ( p_buffer_pos )
{
time( &p_sys->time_next_exchange );
@@
-462,6
+462,8
@@
static void Main( intf_thread_t *p_this )
{
/* woops, submission failed */
msg_Dbg( p_this, "%s", p_buffer_pos );
+ /* Buggy last.fm server sometimes return INTERVAL 1 */
+ p_sys->time_next_exchange += DEFAULT_INTERVAL;
vlc_mutex_unlock ( &p_sys->lock );
continue;
}