Permalink
Browse files

mpris: More property fixes

  • Loading branch information...
1 parent da3b968 commit 0d43578aca8909ad2fd5e7c2c239acba4d25bdc4 @phako committed Mar 18, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/dlna.c
View
@@ -324,7 +324,11 @@ handle_get_property (GDBusConnection * connection,
} else if (g_strcmp0 (property_name, "PlaybackStatus") == 0) {
ret = g_variant_new_string ("Paused");
} else if (g_strcmp0 (property_name, "LoopStatus") == 0) {
- ret = g_variant_new_string ("Paused");
+ if (myobj->engine->loop) {
+ ret = g_variant_new_string ("Track");
+ } else {
+ ret = g_variant_new_string ("None");
+ }
} else if (g_strcmp0 (property_name, "Rate") == 0) {
ret = g_variant_new_double (0);
} else if (g_strcmp0 (property_name, "Shuffle") == 0) {
@@ -334,7 +338,7 @@ handle_get_property (GDBusConnection * connection,
} else if (g_strcmp0 (property_name, "Volume") == 0) {
ret = g_variant_new_double (0);
} else if (g_strcmp0 (property_name, "Position") == 0) {
- ret = g_variant_new_double (0);
+ ret = g_variant_new_int64 (0);
} else if (g_strcmp0 (property_name, "MinimumRate") == 0) {
ret = g_variant_new_double (0);
} else if (g_strcmp0 (property_name, "MaximumRate") == 0) {

0 comments on commit 0d43578

Please sign in to comment.