Commit d79f3110 authored by Warren Dukes's avatar Warren Dukes

when sending metadata to audiodevice, put filename in title if no tag data is found

git-svn-id: https://svn.musicpd.org/mpd/trunk@2381 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 82625dbf
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment