[vlc-devel] [PATCH] avcodec: display encoder error only on linux

Thomas Guillem thomas at gllm.fr
Fri May 25 09:18:57 CEST 2018


This error is only relevant on linux and it's really not needed for
iOS/macOS/Android.
---
 modules/codec/avcodec/encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 87fff6d3c7..761da1a893 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -365,7 +365,7 @@ int InitVideoEnc( vlc_object_t *p_this )
 "*** Please check with your Libav/FFmpeg packager. ***\n"
 "*** This is NOT a VLC media player issue.   ***", psz_namecodec );
 
-#if !defined(_WIN32)
+#if defined(__linux__)
         vlc_dialog_display_error( p_enc, _("Streaming / Transcoding failed"), _(
 /* I have had enough of all these MPEG-3 transcoding bug reports.
  * Downstream packager, you had better not patch this out, or I will be really
-- 
2.17.0



More information about the vlc-devel mailing list