driver/audiodec: metadata fix

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5a7b190790
Author: martii <m4rtii@gmx.de>
Date: 2013-10-20 (Sun, 20 Oct 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-10-20 12:29:40 +02:00
committed by [CST] Focus
parent f7d8a89dd4
commit 8e3224acad
3 changed files with 27 additions and 14 deletions

View File

@@ -431,14 +431,17 @@ bool CFfmpegDec::SetMetaData(FILE *_in, CFile::FileType ft, CAudioMetaData* m)
total_time = 8 * m->filesize / bitrate;
meta_data_valid = true;
m->changed = true;
}
if (!is_stream) {
m->title = title;
m->artist = artist;
m->date = date;
m->album = album;
m->genre = genre;
m->total_time = total_time;
}
m->title = title;
m->artist = artist;
m->date = date;
m->album = album;
m->genre = genre;
m->type_info = type_info;
m->total_time = total_time;
m->bitrate = bitrate;
m->samplerate = samplerate;