Commit b59e2f6b authored by Kevin Whitaker's avatar Kevin Whitaker

Don't push empty metadata when reaching end and instead push stopped state.

parent de8a550f
......@@ -100,10 +100,17 @@ void MPRISPlayerInterface::mediaVolumeChanged(int volume)
void MPRISPlayerInterface::mediaPlaylistChanged(QStringList playlist)
{
emit metadataChanged(Metadata());
QVariantMap map;
map.insert("Metadata",Metadata());
dbusUpdate(map);
if(playlist.size() > 0)
{
emit metadataChanged(Metadata());
QVariantMap map;
map.insert("Metadata",Metadata());
dbusUpdate(map);
}
else
{
mediaStateChanged(false);
}
}
bool MPRISPlayerInterface::CanControl()
......
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