diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-17 23:57:38 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-08-17 23:57:38 +0200 |
commit | 052f74f4db45219d731e7af6dcb9beb5eec2344c (patch) | |
tree | 4197dcc66ac26f6be5364d8c5fda09dfb4b791b7 /commands.c | |
parent | 1cbd3896bab58f2ccfb17c0fe36062e3748724da (diff) |
Use relative paths when interacting with the music_* functions.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -160,9 +160,11 @@ static void commands_get_mp3(GSocketConnection *connection, const gchar *cmd) { goto commands_get_mp3_free_path; } + gchar *full_path = music_get_full_path(path); GOutputStream *os = g_io_stream_get_output_stream((GIOStream*)connection); - GFile *file = g_file_new_for_path(path); + GFile *file = g_file_new_for_path(full_path); GFileInputStream *is = g_file_read(file, NULL, &error); + g_free(full_path); if(is == NULL) { g_warning(error->message); |