Browse Source

Fixes core dumps when mpris is found.

master
Sean E. Russell 4 years ago
parent
commit
23833b0ec4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/mconnect/mpris.vala

+ 3
- 3
src/mconnect/mpris.vala View File

@ -326,15 +326,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);


Loading…
Cancel
Save