diff options
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r-- | src/decoder_thread.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 061048d94..a856c1f00 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -208,11 +208,8 @@ static void decoder_run(void) if (song_is_file(song)) uri = map_song_fs(song); - else { - char buffer[MPD_PATH_MAX]; - - uri = g_strdup(song_get_url(song, buffer)); - } + else + uri = song_get_uri(song); if (uri == NULL) { dc.state = DECODE_STATE_ERROR; |