aboutsummaryrefslogtreecommitdiffstats
path: root/src/strfsong.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-03 11:51:32 +0200
committerMax Kellermann <max@duempel.org>2008-10-03 11:51:32 +0200
commit44ecb3b869a8106475b984b4a0d212f9b3b3a219 (patch)
tree5c9cd8001f54341a22ddeecfc2781fa979ce63f2 /src/strfsong.c
parentccc7cf81e560025520777118a00a4c041bd7a149 (diff)
downloadmpd-44ecb3b869a8106475b984b4a0d212f9b3b3a219.tar.gz
mpd-44ecb3b869a8106475b984b4a0d212f9b3b3a219.tar.xz
mpd-44ecb3b869a8106475b984b4a0d212f9b3b3a219.zip
use g_basename() instead of basename()
g_basename() is always available, no need to implement a fallback. Also use g_path_get_dirname(), g_path_get_basename().
Diffstat (limited to '')
-rw-r--r--src/strfsong.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/strfsong.c b/src/strfsong.c
index fcaf4ada1..cef2056c8 100644
--- a/src/strfsong.c
+++ b/src/strfsong.c
@@ -23,7 +23,6 @@
*/
#include "strfsong.h"
-#include "support.h"
#include "charset.h"
#include <string.h>
@@ -171,7 +170,7 @@ _strfsong(gchar *s,
if( strstr(song->file, "://") )
temp = utf8_to_locale(song->file);
else
- temp = utf8_to_locale(basename(song->file));
+ temp = utf8_to_locale(g_basename(song->file));
} else if (strncmp("%time%", p, n) == 0) {
if (song->time != MPD_SONG_NO_TIME) {
if (song->time > 3600) {