Attempt additional cleanup on mpv start

This commit is contained in:
jeffvli 2023-08-06 11:41:40 -07:00
parent aaaaee7043
commit 23e791c829
3 changed files with 7 additions and 0 deletions

View file

@ -57,6 +57,9 @@ export const App = () => {
const initializeMpv = async () => {
const isRunning: boolean | undefined = await mpvPlayer?.isRunning();
mpvPlayer?.pause();
mpvPlayer?.stop();
if (!isRunning) {
const extraParameters = useSettingsStore.getState().playback.mpvExtraParameters;
const properties = {