Skip to content

mpris: Do not send the Stopped signal when a song ends

Jean Felder requested to merge wip/jfelder/mpris-playbackstatus-stopped into master

MPRIS specifications are not explicit whether the "Stopped" signal should be sent at the end of a song. It seems logical not to emit this signal if the playlist is not finished because a new song is gonna start. Besides, this is the behavior of all the usual audio players.

This is fixed by returning the "Playing" PlaybackStatus if the player is in the LOADING (which happens at the end of all songs) or PLAYING state.

Related: #282 (closed)

Merge request reports