Fix option
This commit is contained in:
10
dllmain.cpp
10
dllmain.cpp
@@ -202,9 +202,9 @@ int64_t HookedOpenMediaFileAndGetDuration(DWORD* duration, const char* arcName,
|
||||
mpv_set_option_string(player, "input-default-bindings", "no");
|
||||
mpv_set_option_string(player, "hwdec", "auto");
|
||||
mpv_set_option_string(player, "auto-window-resize", "no");
|
||||
mpv_set_option_string(player, "fullscreen", "no");
|
||||
mpv_set_option_string(player, "ontop", "no");
|
||||
mpv_set_option_string(player, "d3d11-exclusive-fs", "no");
|
||||
// mpv_set_option_string(player, "fullscreen", "no");
|
||||
// mpv_set_option_string(player, "ontop", "no");
|
||||
// mpv_set_option_string(player, "d3d11-exclusive-fs", "no");
|
||||
auto loggingFile = config.configs["loggingFile"];
|
||||
if (!loggingFile.empty()) {
|
||||
mpv_set_option_string(player, "log-file", loggingFile.c_str());
|
||||
@@ -239,9 +239,9 @@ int64_t HookedOpenMediaFileAndGetDuration(DWORD* duration, const char* arcName,
|
||||
Sleep(10);
|
||||
}
|
||||
int64_t dur = 0;
|
||||
mpv_get_property(player, "duration", MPV_FORMAT_INT64, &dur);
|
||||
mpv_get_property(player, "duration/full", MPV_FORMAT_INT64, &dur);
|
||||
if (duration) {
|
||||
*duration = dur / 1000;
|
||||
*duration = dur;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user