I noticed this problem with gmpc too. So i can confirm.

Q

Marc Pavot wrote:
> I attach a new patch that integrates some fixes and ideas proposed by Qball.
> This patch replaces the previous one.
> 
> I have added the support of idle command in Ario (
> http://ario-player.sourceforge.net/) and 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.
> 
> I propose a patch to MPD to fix this issue but I don't really know this part
> of MPD so it may not be the best solution.
> 
> Marc
> 
> 
> 2008/11/23 Marc Pavot <[EMAIL PROTECTED]>
> 
>> Hi,
>>
>>
>>> Thanks, I have merged your patch.  Please write a patch which adds
>>> documentation for that feature to doc/protocol.xml.
>> Done.
>>
>>
>> I also attach a patch to libmpdclient that can be used as a basis for the
>> discussion on 'idle' implementation on client side.
>>
>> Main points about this implementation:
>> - It is designed to be integrated into client main loop. This solution has
>> the advantage to avoid multithreading problems and to be well integrated
>> into client applications. The disadvantage is that we have to implement
>> something specific for each kind of loop. My patch comes with a generic
>> callback mechanism to allow different implementations and with an
>> implementation for GLib main loop.
>> - The client application starts by initializing the main loop integration
>> (mpd_glibInit)
>> - It can then start or stop the idle mode (mpd_startIdle and mpd_stopIdle).
>> In mpd_startIdle, the client specifies a callback to be called if a
>> notification is received.
>> - If the client application tries to send a command while it is in idle
>> mode, 'noidle' is sent and the callback is called (if needed) before the
>> real command.
>>
>> Hope this helps.
>> Marc
>>
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Musicpd-dev-team mailing list
> Musicpd-dev-team@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to