Commit a8ae83ca authored by Rafaël Carré's avatar Rafaël Carré

audioscrobbler: reset pause start counter when changing state

refs #3089
parent 8183270f
...@@ -493,7 +493,10 @@ static int PlayingChange( vlc_object_t *p_this, const char *psz_var, ...@@ -493,7 +493,10 @@ static int PlayingChange( vlc_object_t *p_this, const char *psz_var,
else if( state_value.i_int == PAUSE_S ) else if( state_value.i_int == PAUSE_S )
p_sys->time_pause = mdate(); p_sys->time_pause = mdate();
else if( p_sys->time_pause > 0 && state_value.i_int == PLAYING_S ) else if( p_sys->time_pause > 0 && state_value.i_int == PLAYING_S )
{
p_sys->time_total_pauses += ( mdate() - p_sys->time_pause ); p_sys->time_total_pauses += ( mdate() - p_sys->time_pause );
p_sys->time_pause = 0;
}
return VLC_SUCCESS; return VLC_SUCCESS;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment