Move FFmpeg callback initialization

Configure FFmpeg log redirection on start from a log helper.
This commit is contained in:
Romain Vimont
2023-02-23 12:49:42 +01:00
parent c91e56ac1f
commit 123a4d9575
4 changed files with 49 additions and 39 deletions

View File

@@ -75,6 +75,8 @@ main_scrcpy(int argc, char *argv[]) {
return SCRCPY_EXIT_FAILURE;
}
sc_log_configure();
#ifdef HAVE_USB
enum scrcpy_exit_code ret = args.opts.otg ? scrcpy_otg(&args.opts)
: scrcpy(&args.opts);