mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Complain only about mapping when streaming
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user