changeset 4605:9df19c4900ba

Remove useless str_to_utf8() conversions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jun 2008 22:40:03 +0300
parents 51d82bf6ba63
children 6b76f8589f5d
files src/audacious/dbus.c
diffstat 1 files changed, 2 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/dbus.c	Wed Jun 04 22:27:06 2008 +0300
+++ b/src/audacious/dbus.c	Wed Jun 04 22:40:03 2008 +0300
@@ -184,7 +184,7 @@
     TupleValueType type;
     type = tuple_get_value_type(tuple, -1, key);
     if (type == TUPLE_STRING) {
-        gchar *result = str_to_utf8(tuple_get_string(tuple, -1, key));
+        gchar *result = g_strdup(tuple_get_string(tuple, -1, key));
 
         val = g_new0(GValue, 1);
         g_value_init(val, G_TYPE_STRING);
@@ -695,15 +695,7 @@
 
 gboolean audacious_rc_song_filename(RemoteObject *obj, guint pos,
                                     gchar **filename, GError **error) {
-    gchar *tmp = NULL;
-    tmp = playlist_get_filename(playlist_get_active(), pos);
-
-    if(tmp){
-        *filename = str_to_utf8(tmp);
-    }
-    free(tmp);
-    tmp = NULL;
-
+    *filename = playlist_get_filename(playlist_get_active(), pos);
     return TRUE;
 }