playlist: use GLib instead of utils.h

This commit is contained in:
Max Kellermann
2009-01-02 17:22:47 +01:00
parent cc4e0a786d
commit 9e46c32004
2 changed files with 17 additions and 13 deletions

View File

@@ -21,7 +21,6 @@
#include "song.h"
#include "mapper.h"
#include "path.h"
#include "utils.h"
#include "ls.h"
#include "database.h"
#include "idle.h"
@@ -32,6 +31,7 @@
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <errno.h>
static struct stored_playlist_info *
load_playlist_info(const char *parent_path_fs, const char *name_fs)
@@ -179,7 +179,7 @@ spl_load(const char *utf8path)
s = song_get_url(song, path_max_tmp);
}
g_ptr_array_add(list, xstrdup(s));
g_ptr_array_add(list, g_strdup(s));
if (list->len >= playlist_max_length)
break;