Compare commits
2 Commits
2556e8c3df
...
f7e25fb4fe
| Author | SHA1 | Date | |
|---|---|---|---|
| f7e25fb4fe | |||
| c50a56d76c |
@@ -202,7 +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, "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());
|
||||
@@ -237,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