Dbus DelTrack playlist position and GetLength
According to http://wiki.videolan.org/DBus-spec and http://wiki.xmms2.xmms.se/wiki/MPRIS#DelTrack DelTrack should remove a playlist item according to its position. I would expect, after deleting the item at position 3, that the item in position 4 would become position 3, but this is not the case. Maybe I have misunderstood the DBus specs, in that case maybe others will as well, this could potentially lead to different implementations of the interface.
If instead new positions are used (for example DelTrack 1, DelTrack 2, DelTrack 3), the tracks gets removed from the playlist, but GetLength returns the length of the playlist before the tracks were removed, only after pushing "Next track" GetLength will return the correct length.
To reproduce
-
Add several tracks to the playlist
-
Delete track at position 0 (or any other position) several times, only one track will be deleted (until "next track" is pushed).