From 27f1d540f2e54f8772142440e07fcd4da538a73c Mon Sep 17 00:00:00 2001 From: Jean Christophe DE RYCK Date: Sat, 2 Sep 2023 21:33:12 +0100 Subject: [PATCH] Fix CLPI directory Fixes issue #762. --- tsMuxer/blurayHelper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsMuxer/blurayHelper.cpp b/tsMuxer/blurayHelper.cpp index f1a670fd..01059427 100644 --- a/tsMuxer/blurayHelper.cpp +++ b/tsMuxer/blurayHelper.cpp @@ -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; @@ -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;