Update record format error message

Recording now supports formats other than mp4 and mkv.

Refs e637feba51
This commit is contained in:
Romain Vimont 2023-11-16 09:59:37 +01:00
parent 45a073a333
commit 4658c0e5d2
1 changed files with 4 additions and 2 deletions

View File

@ -1640,7 +1640,8 @@ static bool
parse_record_format(const char *optarg, enum sc_record_format *format) { parse_record_format(const char *optarg, enum sc_record_format *format) {
enum sc_record_format fmt = get_record_format(optarg); enum sc_record_format fmt = get_record_format(optarg);
if (!fmt) { if (!fmt) {
LOGE("Unsupported format: %s (expected mp4 or mkv)", optarg); LOGE("Unsupported record format: %s (expected mp4, mkv, m4a, mka, "
"opus, aac, flac or wav)", optarg);
return false; return false;
} }
@ -1710,7 +1711,8 @@ parse_audio_codec(const char *optarg, enum sc_codec *codec) {
*codec = SC_CODEC_RAW; *codec = SC_CODEC_RAW;
return true; return true;
} }
LOGE("Unsupported audio codec: %s (expected opus, aac, flac or raw)", optarg); LOGE("Unsupported audio codec: %s (expected opus, aac, flac or raw)",
optarg);
return false; return false;
} }