changeset 4770:fde0748bd6aa

MPRIS specification defines url to the media as location, not URI
author Tomasz Mon <desowin@gmail.com>
date Thu, 28 Aug 2008 22:09:30 +0200
parents 3ba4537c53b5
children 4f9bc75a9672
files src/audacious/dbus.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dbus.c	Wed Aug 27 14:36:37 2008 +0200
+++ b/src/audacious/dbus.c	Thu Aug 28 22:09:30 2008 +0200
@@ -318,12 +318,12 @@
         return TRUE;
     }
 
-    // Song URI
+    // Song location
     value = g_new0(GValue, 1);
     g_value_init(value, G_TYPE_STRING);
     g_value_take_string(value, playlist_get_filename(active, pos));
 
-    g_hash_table_insert(md, "URI", value);
+    g_hash_table_insert(md, "location", value);
 
     *metadata = md;
 
@@ -406,12 +406,12 @@
         metadata = g_hash_table_new_full(g_str_hash, g_str_equal,
                                          NULL, remove_metadata_value);
 
-    // Song URI
+    // Song location
     value = g_new0(GValue, 1);
     g_value_init(value, G_TYPE_STRING);
     g_value_take_string(value, playlist_get_filename(active, pos));
 
-    g_hash_table_insert(metadata, "URI", value);
+    g_hash_table_insert(metadata, "location", value);
 
     g_signal_emit(obj, signals[TRACK_CHANGE_SIG], 0, metadata);
     g_hash_table_destroy(metadata);
@@ -441,12 +441,12 @@
         return TRUE;
     }
 
-    // Song URI
+    // Song location
     value = g_new0(GValue, 1);
     g_value_init(value, G_TYPE_STRING);
     g_value_take_string(value, playlist_get_filename(active, pos));
 
-    g_hash_table_insert(md, "URI", value);
+    g_hash_table_insert(md, "location", value);
 
     *metadata = md;