Skip to content

Commit

Permalink
Merge pull request #780 from ElderOrb/dont_crash_on_close
Browse files Browse the repository at this point in the history
crash if closing a file during processing #776
  • Loading branch information
dericed committed Jul 16, 2023
2 parents 85c606b + a7ee4c3 commit c7e07af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/FileInformation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,10 @@ FileInformation::FileInformation (SignalServer* signalServer, const QString &Fil
//---------------------------------------------------------------------------
FileInformation::~FileInformation ()
{
if(m_mediaParser->state() == QAVPlayer::PlayingState)
if(m_mediaParser->state() == QAVPlayer::PlayingState) {
m_mediaParser->stop();
delete m_mediaParser;
}

bool result = wait();
assert(result);
Expand Down

0 comments on commit c7e07af

Please sign in to comment.