Fix SingleFileMuxer::close (#300)
Regression on commit #277 : modification of SingleFileMuxer::close() is not necessary. Fixes issue #299.
This commit is contained in:
parent
e347781173
commit
7b159f6482
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user