]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs/open.cpp
Fix potential segfault.
[vlc] / modules / gui / qt4 / dialogs / open.cpp
index 143e9df7a5a6b0f8d4305e2ce92663e67952591d..3a13ca9e67ecbedc17f71a907cbd0f9dae43338c 100644 (file)
@@ -337,6 +337,8 @@ void OpenDialog::stream( bool b_transcode_only )
 {
     mrl = ui.advancedLineInput->text();
     toggleVisible();
+    QStringList listMRL = SeparateEntries( mrl );
+    if( listMRL.size() > 0 )
     THEDP->streamingDialog( this, SeparateEntries( mrl )[0], b_transcode_only );
 }