aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c
index 148ed02c5..2a3170c7b 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -158,6 +158,10 @@ int waitOnDecode(PlayerControl * pc, DecoderControl * dc, OutputBuffer * cb,
}
if((tag = metadataChunkToMpdTagDup(&(pc->fileMetadataChunk)))) {
+ /* lets put the filename in the title if no tag info */
+ if(!tag->title && !tag->artist && !tag->album) {
+ tag->title = strdup(pc->currentUrl);
+ }
sendMetadataToAudioDevice(tag);
freeMpdTag(tag);
}