changeset 4641:aeb435ee43f8

fixed the bug that initiating playback of a file without metadata always resulted in title <unknown> instead of its filename.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Fri, 13 Jun 2008 22:36:15 +0900
parents cbc9965e1552
children b96bbd08d54b
files src/audacious/tuple.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/tuple.c	Fri Jun 13 22:32:27 2008 +0900
+++ b/src/audacious/tuple.c	Fri Jun 13 22:36:15 2008 +0900
@@ -159,7 +159,10 @@
     if ((value = tuple_associate_data(tuple, nfield, field, TUPLE_STRING)) == NULL)
         return FALSE;
 
-    value->value.string = NULL;
+    if (string)
+        value->value.string = str_to_utf8(string);
+    else
+        value->value.string = NULL;
 
     TUPLE_UNLOCK_WRITE();
     return TRUE;