diff --git a/src/config.c b/src/config.c index 6e27fb3..5908a18 100644 --- a/src/config.c +++ b/src/config.c @@ -346,9 +346,4 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) { else config->stream.bitrate = 5000; } - - if (config->mapping == NULL) { - fprintf(stderr, "Please specify mapping file as default mapping could not be found.\n"); - exit(-1); - } } diff --git a/src/main.c b/src/main.c index 77671e2..6a9f4fb 100644 --- a/src/main.c +++ b/src/main.c @@ -244,6 +244,10 @@ int main(int argc, char* argv[]) { config.stream.supportsHevc = config.codec != CODEC_H264 && (config.codec == CODEC_HEVC || platform_supports_hevc(system)); if (IS_EMBEDDED(system)) { + if (config.mapping == NULL) { + fprintf(stderr, "Please specify mapping file as default mapping could not be found.\n"); + exit(-1); + } struct mapping* mappings = mapping_load(config.mapping); for (int i=0;i