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).
This commit is contained in:
Martin Pulec
2017-03-13 18:11:27 +01:00
parent dbc57f4f79
commit a5d05d5a6c

View File

@@ -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) {