kutils: do not stop the player from KMediaWidget destructor

the state is saved before terminating MPV and that may require the player
to be playing (not paused or stopped)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-12-23 17:46:55 +02:00
parent d19d80431b
commit d5e9d695df

View file

@ -135,7 +135,6 @@ KMediaWidget::~KMediaWidget()
d->m_volumeline.stop();
d->m_player->setVolume(d->m_volumeline.endFrame());
}
d->m_player->stop();
/*
Deleting the player has to be done before the UI is deleted because the player is embeded
into UI widget and MPV accessing the window ID of d->m_ui->w_player may cause fatal X11 I/O