]> git.sesse.net Git - vlc/commitdiff
Fix potential segfault.
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 2 Aug 2008 00:26:22 +0000 (17:26 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 2 Aug 2008 01:21:23 +0000 (18:21 -0700)
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 );
 }