Skip to content

Commit

Permalink
Merge pull request #806 from ElderOrb/qt6_crash_on_applying_filters
Browse files Browse the repository at this point in the history
Qt6 crash on applying filters
  • Loading branch information
dericed authored Sep 12, 2023
2 parents 6856ab3 + e3b4175 commit 5b57e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/GUI/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Player::Player(QWidget *parent) :
#else
if(m_w->videoSink()->videoFrame().size() != videoFrame.size()) {
m_w->videoSink()->setVideoFrame(videoFrame);
updateVideoOutputSize();
QTimer::singleShot(0, [this] { updateVideoOutputSize(); });
} else {
m_w->videoSink()->setVideoFrame(videoFrame);
}
Expand Down Expand Up @@ -642,7 +642,7 @@ void Player::updateInfoLabels()

void Player::updateSlider(qint64 value)
{
if(m_ignorePositionChanges)
if(m_ignorePositionChanges || !m_fileInformation)
return;

auto displayPosition = m_player->position();
Expand Down

0 comments on commit 5b57e06

Please sign in to comment.