mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-24 00:56:42 +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
|
else
|
||||||
config->stream.bitrate = 5000;
|
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));
|
config.stream.supportsHevc = config.codec != CODEC_H264 && (config.codec == CODEC_HEVC || platform_supports_hevc(system));
|
||||||
|
|
||||||
if (IS_EMBEDDED(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);
|
struct mapping* mappings = mapping_load(config.mapping);
|
||||||
|
|
||||||
for (int i=0;i<config.inputsCount;i++) {
|
for (int i=0;i<config.inputsCount;i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user