• Marc Pavot's avatar
    player: set elapsed=0 at song change · fd114414
    Marc Pavot authored
    I have found something that looks like a bug in MPD:
    - When a song is finished, the next one is played and the 'player'
      event is emitted.
    - When the client sends the status command just after this event, the
      songid is the new one but the 'elapsed' time is not reseted to 0.
    
    This is problem because I have implemented the solution using a timer
    on client side to compute the elapsed time but with this bug the
    elapsed time continues to be incremented on a new song.
    fd114414
player_thread.c 12.8 KB