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

MPV: Try the same commands as in lektord to close mpv to try to solve #5

parent ac6b1785
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!23Try to fix crashes when creating and deleting MPV
......@@ -88,8 +88,9 @@ MpvContainer::closeMpv() noexcept
asyncCommand(AsyncCmdType::None, { "quit", nullptr });
registerMpvTimeCallback(nullptr);
registerMpvDurationCallback(nullptr);
asyncCommand(AsyncCmdType::None, { "quit", nullptr });
mpv_wait_async_requests(mpv);
mpv_terminate_destroy(mpv);
mpv_destroy(mpv);
mpv = nullptr; // Stop all other callbacks here
isMpvAlreadyInitialized = false; // De-init
}
......
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