Fix SingleFileMuxer::close (#300)

Regression on commit #277 : modification of SingleFileMuxer::close() is not necessary.

Fixes issue #299.
This commit is contained in:
jcdr428 2020-05-08 22:11:53 +03:00 committed by GitHub
parent e347781173
commit 7b159f6482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,14 +295,8 @@ bool SingleFileMuxer::close()
if (!streamInfo->m_file.write(streamInfo->m_buffer, streamInfo->m_bufLen))
return false;
if (streamInfo->m_codecReader)
{
if (!streamInfo->m_file.close())
return false;
if (streamInfo->m_file.open(streamInfo->m_fileName.c_str(), File::ofWrite + File::ofNoTruncate))
return false;
if (!streamInfo->m_codecReader->beforeFileCloseEvent(streamInfo->m_file))
return false;
}
if (!streamInfo->m_file.close())
return false;