audioplayer: show cover from id3-tag or folder.jpg in header

if exist a file called folder.jpg in same dir as the audiofile
 or a audiocover is defined in id3-tag it will be displayed in header.

 cover in tag is preferred.

 ported from mohusch. original patch by tangocash. thx!


Origin commit data
------------------
Branch: ni/coolstream
Commit: fe07423ad1
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-11-09 (Sat, 09 Nov 2013)

Origin message was:
------------------
- audioplayer: show cover from id3-tag or folder.jpg in header

 if exist a file called folder.jpg in same dir as the audiofile
 or a audiocover is defined in id3-tag it will be displayed in header.

 cover in tag is preferred.

 ported from mohusch. original patch by tangocash. thx!


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2013-11-09 18:34:09 +01:00
parent b08d6cf967
commit 8fee7926c9
5 changed files with 103 additions and 3 deletions

View File

@@ -51,7 +51,7 @@ CAudioMetaData::CAudioMetaData( const CAudioMetaData& src )
audio_start_pos( src.audio_start_pos ), vbr( src.vbr ),
hasInfoOrXingTag( src.hasInfoOrXingTag ), artist( src.artist ),
title( src.title ), album( src.album ), sc_station( src.sc_station ),
date( src.date ), genre( src.genre ), track( src.track ),
date( src.date ), genre( src.genre ), track( src.track ),cover(src.cover),
changed( src.changed )
{
}
@@ -81,6 +81,7 @@ void CAudioMetaData::operator=( const CAudioMetaData& src )
date = src.date;
genre = src.genre;
track = src.track;
cover = src.cover;
sc_station = src.sc_station;
changed = src.changed;
}
@@ -104,5 +105,6 @@ void CAudioMetaData::clear()
date.clear();
genre.clear();
track.clear();
cover.clear();
changed=false;
}