[vlmc-devel] RendererSettings.cpp: Display error message if OpenSSL support is missing.

Rohit Yadav git at videolan.org
Thu Jul 28 07:34:59 CEST 2011


vlmc | branch: master | Rohit Yadav <rohityadav89 at gmail.com> | Thu Jul 28 11:12:34 2011 +0530| [3b04b113818d2ec0042e6123e88b490c54931c67] | committer: Rohit Yadav

RendererSettings.cpp: Display error message if OpenSSL support is missing.
Some builds may have OpenSSL support turned off, in that case networking may be insecure.
So, warn the user.

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=3b04b113818d2ec0042e6123e88b490c54931c67
---

 src/Gui/export/RendererSettings.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/Gui/export/RendererSettings.cpp b/src/Gui/export/RendererSettings.cpp
index c27bd18..ead8c98 100644
--- a/src/Gui/export/RendererSettings.cpp
+++ b/src/Gui/export/RendererSettings.cpp
@@ -30,6 +30,7 @@
 #include <QFileDialog>
 #include <QFileInfo>
 #include <QMessageBox>
+#include <QSslSocket>
 
 RendererSettings::RendererSettings( bool shareOnInternet )
 {
@@ -58,6 +59,10 @@ RendererSettings::RendererSettings( bool shareOnInternet )
              this, SLOT(selectOutputFileName() ) );
     connect( m_ui.videoPresetBox, SIGNAL( activated( int ) ),
              this, SLOT( updateVideoPreset( int ) ) );
+
+    if( !QSslSocket::supportsSsl() )
+	    QMessageBox::information(0, "SSL Error",
+		    "This build has no OpenSSL support, video upload may not work.");
 }
 
 void



More information about the Vlmc-devel mailing list