clear mpris metadata on stop
This commit is contained in:
parent
3772be599b
commit
efc639367b
1 changed files with 4 additions and 0 deletions
|
@ -140,6 +140,10 @@ class MprisPlayer : Object {
|
|||
this.metadata = metadata;
|
||||
});
|
||||
|
||||
playbin.stopped.connect (() => {
|
||||
this.metadata = new HashTable<string, Variant> (null, null);
|
||||
});
|
||||
|
||||
this.on_next.connect (() => playbin.go_to_next_track ());
|
||||
this.on_previous.connect (() => playbin.go_to_prev_track ());
|
||||
this.on_play.connect (() => playbin.play ());
|
||||
|
|
Loading…
Reference in a new issue