Skip to content

Commit

Permalink
Fix CLPI directory
Browse files Browse the repository at this point in the history
Fixes issue #762.
  • Loading branch information
jcdr428 committed Sep 2, 2023
1 parent c0ca547 commit 27f1d54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsMuxer/blurayHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ bool BlurayHelper::createCLPIFile(TSMuxer* muxer, int clpiNum, bool doLog) const

string dstDir = string("BDMV") + getDirSeparator() + string("CLIPINF") + getDirSeparator();
string clipName = extractFileName(muxer->getFileNameByIdx(i));
if (!file->open(prefix.append(dstDir).append(clipName).append(".clpi").c_str(), File::ofWrite))
if (!file->open((prefix + dstDir + clipName + ".clpi").c_str(), File::ofWrite))
{
delete[] clpiBuffer;
delete file;
Expand All @@ -499,7 +499,7 @@ bool BlurayHelper::createCLPIFile(TSMuxer* muxer, int clpiNum, bool doLog) const

dstDir = string("BDMV") + getDirSeparator() + string("BACKUP") + getDirSeparator() + string("CLIPINF") +
getDirSeparator();
if (!file->open(prefix.append(dstDir).append(clipName).append(".clpi").c_str(), File::ofWrite))
if (!file->open((prefix + dstDir + clipName + ".clpi").c_str(), File::ofWrite))
{
delete[] clpiBuffer;
delete file;
Expand Down

0 comments on commit 27f1d54

Please sign in to comment.