Skip to content

Commit

Permalink
Merge pull request #46 from ua0lnj/master
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
ua0lnj authored Jan 14, 2025
2 parents 292d029 + 678df06 commit c1f063a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion control.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cMpvControl::cMpvControl(string Filename, bool Shuffle)
Player->SetWindowSize(w, h, x, y);
xcb_flush(connect);
connect = NULL;
}
} else Player->SetWindowSize(0, 0, 0, 0);
}
cStatus::MsgReplaying(this, Filename.c_str(), Filename.c_str(), true);
}
Expand Down
5 changes: 4 additions & 1 deletion player.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,11 @@ void cMpvPlayer::PlayerStart()
check_error(mpv_set_option_string(hMpv, "alang", MpvPluginConfig->Languages.c_str()));
check_error(mpv_set_option_string(hMpv, "cache", "no")); // video stutters if enabled
check_error(mpv_set_option_string(hMpv, "sub-visibility", MpvPluginConfig->ShowSubtitles ? "yes" : "no"));
#if MPV_CLIENT_API_VERSION < MPV_MAKE_VERSION(2,2)
check_error(mpv_set_option_string(hMpv, "sub-forced-only", "yes"));
#else
check_error(mpv_set_option_string(hMpv, "sub-forced-events-only", "yes"));
#endif
check_error(mpv_set_option_string(hMpv, "sub-auto", "all"));
check_error(mpv_set_option_string(hMpv, "hr-seek", "yes"));
check_error(mpv_set_option_string(hMpv, "write-filename-in-watch-later-config", "yes"));
Expand All @@ -642,7 +646,6 @@ void cMpvPlayer::PlayerStart()
#ifdef DEBUG
check_error(mpv_set_option_string(hMpv, "log-file", "/var/log/mpv"));
#endif

if (MpvPluginConfig->UsePassthrough)
{
check_error(mpv_set_option_string(hMpv, "audio-spdif", "ac3,dts"));
Expand Down

0 comments on commit c1f063a

Please sign in to comment.