Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 11da8c29 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

MPV: Try to fix MPV close problems by using the mpv_terminate_destroy call

parent 336c9b20
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!15Video playback with mpv
......@@ -69,7 +69,7 @@ MpvContainer::closeMpv() noexcept
registerMpvDurationCallback(nullptr);
mpv_handle *tmp_mpv = mpv;
mpv = nullptr; // Stop all other callbacks here
mpv_destroy(tmp_mpv);
mpv_terminate_destroy(tmp_mpv);
}
}
......@@ -239,6 +239,10 @@ MpvContainer::onMpvEvent() noexcept
break;
handleMpvEvent(event);
}
if (mpv == nullptr) {
qDebug() << "MPV was closed while in the event loop!";
}
}
void
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter