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