Skip to content

Commit

Permalink
Fix segfault for mpris
Browse files Browse the repository at this point in the history
Taken from: bboozzoo#56

Signed-off-by: Jo De Boeck <[email protected]>
  • Loading branch information
grimpy committed Mar 28, 2021
1 parent 6d9fbad commit 5941fe0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mconnect/mpris.vala
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,15 @@ class MprisHandler : Object, PacketHandlerInterface {
}
if (prop.can_go_next != null) {
builder.set_member_name ("canGoNext");
builder.add_boolean_value (prop.can_pause);
builder.add_boolean_value (prop.can_go_next);
}
if (prop.can_go_previous != null) {
builder.set_member_name ("canGoPrevious");
builder.add_boolean_value (prop.can_pause);
builder.add_boolean_value (prop.can_go_previous);
}
if (prop.can_seek != null) {
builder.set_member_name ("canSeek");
builder.add_boolean_value (prop.can_pause);
builder.add_boolean_value (prop.can_seek);
}
builder.set_member_name ("pos");
builder.add_int_value (prop.position);
Expand Down

0 comments on commit 5941fe0

Please sign in to comment.