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

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


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue May 22 10:38:46 2018 +0200| [ac64b83f24ad5d88e1b7d397b2c4924b09aa818f] | 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

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

 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 7ad08f0513..625d9fb96f 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