From 332dd00089cfd86df8e2345d8cd404af36d1981d Mon Sep 17 00:00:00 2001 From: Jim Date: Mon, 22 Aug 2022 02:50:17 -0700 Subject: [PATCH] ffmpeg-mux: Disable stdout/stderr on Windows These server no purpose unless the ENABLE_FFMPEG_MUX_DEBUG flag is enabled, and will ultimately just cause problems. --- plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c index 18255fad8..8b0cb648f 100644 --- a/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c +++ b/plugins/obs-ffmpeg/ffmpeg-mux/ffmpeg-mux.c @@ -47,6 +47,13 @@ #define AVIO_BUFFER_SIZE 65536 +#if defined(_WIN32) && !defined(ENABLE_FFMPEG_MUX_DEBUG) +#define fprintf(...) +#define printf(...) +#define fflush(x) +#define puts(x) +#endif + /* ------------------------------------------------------------------------- */ static char *global_stream_key = "";