Skip to content

Commit

Permalink
Another workaround for the pause problem
Browse files Browse the repository at this point in the history
  • Loading branch information
smplayer-dev committed Dec 2, 2023
1 parent ae881cd commit 74690b3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/mpvoptions.cpp
Expand Up @@ -850,12 +850,8 @@ void MPVProcess::setPause(bool b) {
sendCommand(QString("set pause %1").arg(b ? "yes" : "no"));

// Workaround for mpv 0.37, playback not resuming after pause
// It seems mpv takes a while to report the pause state in the status line
if (b) {
for (int n = 0; n < 10; n++) {
sendCommand("print_text PAUSE=${=pause}");
}
}
// It seems mpv reports the pause state in the status line with some delay
if (b) sendCommand("no-osd seek 0 relative exact");
}

void MPVProcess::frameStep() {
Expand Down

0 comments on commit 74690b3

Please sign in to comment.