rename COVERDIR => COVERDIR_TMP

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1c59a17fc6
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-18 (Tue, 18 Sep 2018)

Origin message was:
------------------
- rename COVERDIR => COVERDIR_TMP

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2018-09-18 21:18:40 +02:00
parent c6319e8a8c
commit d30b21564d
5 changed files with 14 additions and 14 deletions

View File

@@ -522,8 +522,8 @@ bool CFfmpegDec::SetMetaData(FILE *_in, CAudioMetaData* m, bool save_cover)
bitrate += avc->streams[i]->codecpar->bit_rate;
#endif
if (save_cover && (avc->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC)) {
mkdir(COVERDIR, 0755);
std::string cover(COVERDIR);
mkdir(COVERDIR_TMP, 0755);
std::string cover(COVERDIR_TMP);
cover += "/cover_" + to_string(cover_count++) + ".jpg";
FILE *f = fopen(cover.c_str(), "wb");
if (f) {

View File

@@ -1389,9 +1389,9 @@ bool CMP3Dec::SaveCover(FILE * in, CAudioMetaData * const m)
data = id3_field_getbinarydata(field, &size);
if ( data )
{
mkdir(COVERDIR, 0755);
mkdir(COVERDIR_TMP, 0755);
std::ostringstream cover;
cover.str(COVERDIR);
cover.str(COVERDIR_TMP);
cover << "/cover_" << cover_count++ << ".jpg";
FILE * pFile;
pFile = fopen ( cover.str().c_str() , "wb" );