Complain only about mapping when streaming

This commit is contained in:
Iwan Timmer
2017-06-11 14:30:51 +02:00
parent 021fbaf810
commit d759cfdf37
2 changed files with 4 additions and 5 deletions

View File

@@ -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);
}
}

View File

@@ -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<config.inputsCount;i++) {