[vlc-commits] commit: Qt: fix a crash when the option-list finished by 0, like the new x264_nal_nrd one (Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Tue Apr 13 19:08:37 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 13 19:08:05 2010 +0200| [e6f9c81589c900980cec11938ed8ae563c78b314] | committer: Jean-Baptiste Kempf 

Qt: fix a crash when the option-list finished by 0, like the new x264_nal_nrd one

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

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

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index b51b64c..de1615a 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -516,6 +516,8 @@ void StringListConfigControl::finish(module_config_t *p_module_config, bool byca
 
     for( int i_index = 0; i_index < p_module_config->i_list; i_index++ )
     {
+        if( !p_module_config->ppsz_list[i_index] )
+              continue;
         combo->addItem( qfu((p_module_config->ppsz_list_text &&
                             p_module_config->ppsz_list_text[i_index])?
                             p_module_config->ppsz_list_text[i_index] :



More information about the vlc-commits mailing list