From 6aa27a3dd4c271a66e1f9d8a6ec1d95f092c224d Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 29 Oct 2004 16:12:36 +0000 Subject: sync w/ trunk git-svn-id: https://svn.musicpd.org/mpd/branches/shank-rewrite-config@2398 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/decode.c') 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); } -- cgit v1.2.3