Print scrcpy header first
Inconditionnally print the scrcpy version first, without using LOGI().
The log level is configured only after parsing the command line
parameters (it may be changed via -V), and command line parsing logs
should not appear before the scrcpy version.
@@ -47,6 +47,9 @@ main(int argc, char *argv[]) {
setbuf(stderr, NULL);
#endif
+ printf("scrcpy " SCRCPY_VERSION
+ " <https://github.com/Genymobile/scrcpy>\n");
+
struct scrcpy_cli_args args = {
.opts = scrcpy_options_default,
.help = false,
@@ -73,8 +76,6 @@ main(int argc, char *argv[]) {
return 0;
}
- LOGI("scrcpy " SCRCPY_VERSION " <https://github.com/Genymobile/scrcpy>");
-
#ifdef SCRCPY_LAVF_REQUIRES_REGISTER_ALL
av_register_all();
#endif
