[vlc-commits] Avcodec encoder: do not display error dialog on Win32

Jean-Baptiste Kempf git at videolan.org
Tue May 22 10:41:08 CEST 2018


vlc/vlc-3.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 22 10:38:46 2018 +0200| [558359d74c1d7d47092e89845e5209546bae9e4a] | committer: Jean-Baptiste Kempf

Avcodec encoder: do not display error dialog on Win32

This messages makes no sense on Windows, where there are no
distributions

(cherry picked from commit ac64b83f24ad5d88e1b7d397b2c4924b09aa818f)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=558359d74c1d7d47092e89845e5209546bae9e4a
---

 modules/codec/avcodec/encoder.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index d09a5b01f0..f24bdd801b 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -365,6 +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)
         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
@@ -377,6 +378,8 @@ int InitVideoEnc( vlc_object_t *p_this )
 "This is not an error inside VLC media player.\n"
 "Do not contact the VideoLAN project about this issue.\n"),
             psz_namecodec );
+#endif
+
         return VLC_EGENERIC;
     }
 



More information about the vlc-commits mailing list