Skip to content

Commit

Permalink
crash if closing a file during processing bavc#776
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderOrb committed Jul 16, 2023
1 parent 85c606b commit a7ee4c3
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 a7ee4c3

Please sign in to comment.