enforce -nc option in macOS, as a workaround for a gstreamer issue

This commit is contained in:
fduncanh
2022-01-11 12:50:25 -05:00
parent 0927e0bad0
commit ff115053f0
4 changed files with 21 additions and 13 deletions

View File

@@ -437,6 +437,13 @@ int main (int argc, char *argv[]) {
use_audio = false;
}
#if __APPLE__
/* force use of -nc option on macOS */
LOGI("macOS detected: use -nc option as workaround for GStreamer problem");
previous_no_close_behavior = true;
server_timeout = 0;
#endif
if (videosink == "0") {
use_video = false;
videosink.erase();