Skip to content

Commit 755514d

Browse files
author
Andrew Rabert
authored
Merge pull request #1060 from diced/fix-mpv-crash
Fix startup crash on MacOS when setting custom MPV configuration
2 parents 2218e64 + 7fff010 commit 755514d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/player/PlayerComponent.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,8 @@ void PlayerComponent::setVideoConfiguration()
14781478
///////////////////////////////////////////////////////////////////////////////////////////////////
14791479
void PlayerComponent::setOtherConfiguration()
14801480
{
1481+
if (!m_mpv) return;
1482+
14811483
QString otherConfiguration = SettingsComponent::Get().value(SETTINGS_SECTION_OTHER, "other_conf").toString();
14821484
qDebug() << "Parsing other configuration: "+otherConfiguration;
14831485
QStringList configurationList = otherConfiguration.split(QRegularExpression("[\r\n]"), Qt::SkipEmptyParts);

0 commit comments

Comments
 (0)