From d4d80de459b178ce8516a7defc1bd486b72854fc Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Wed, 12 Jul 2023 12:08:20 +0200 Subject: [PATCH] main: compat message for '-A' Semantics of '-A' parameters has changed from audio receiver address (distinct than video) to audio codec. It is, however, doubful if someone uses it, but just in case. This compat message could (and should) be deleted later. --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index dbbdc6d41..d84a96cb3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -948,6 +948,12 @@ static int parse_options(int argc, char *argv[], struct ug_options *opt) { } opt->audio.codec_cfg = optarg; if (!check_audio_codec(optarg)) { + LOG(LOG_LEVEL_WARNING) + << MOD_NAME + << "The original semantics of '-A' " + "parameter has changed,\nplease use " + "'--audio-host' to specify audio " + "receiver address.\n"; return -EXIT_FAIL_USAGE; } break;