From a5d05d5a6ceb85ba11bb47a55ef5e5a9aa85a4e8 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Mon, 13 Mar 2017 18:11:27 +0100 Subject: [PATCH] Fixed Jumbo sending Do not errorneously use Jumbo frames - there was check if receiver is a loopback address before assigning it (using default value ::1). --- src/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 153f9de15..149dd791c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -893,6 +893,14 @@ int main(int argc, char *argv[]) argc -= optind; argv += optind; + if (argc > 0) { + requested_receiver = argv[0]; + } + + if (!audio_host) { + audio_host = requested_receiver; + } + if (!set_output_buffering()) { log_msg(LOG_LEVEL_WARNING, "Cannot set console output buffering!\n"); } @@ -974,14 +982,6 @@ int main(int argc, char *argv[]) } } - if (argc > 0) { - requested_receiver = argv[0]; - } - - if (!audio_host) { - audio_host = requested_receiver; - } - if((strcmp("none", audio_send) != 0 || strcmp("none", audio_recv) != 0) && strcmp(video_protocol, "rtsp") == 0){ //TODO: to implement a high level rxtx struct to manage different standards (i.e.:H264_STD, VP8_STD,...) if (strcmp(audio_protocol, "rtsp") != 0) {