[vlc-devel] commit: Fix potential segfault. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sat Aug 2 03:18:46 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug  1 17:26:22 2008 -0700| [33e8266df2b1de424d15506d22d827b297ea65a6] | committer: Jean-Baptiste Kempf 

Fix potential segfault.

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

 modules/gui/qt4/dialogs/open.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 143e9df..3a13ca9 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -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 );
 }
 




More information about the vlc-devel mailing list