[vlc-devel] commit: Qt4: make sure the running VLC has a module implementing the protocol ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Nov 25 21:38:09 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 25 22:37:29 2009 +0200| [7596e07dc4401e3fc6f23912d165b591883bc85b] | committer: Rémi Denis-Courmont 

Qt4: make sure the running VLC has a module implementing the protocol

This avoids "*-caching variable does not exist" errors

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

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

diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index 9d11c8e..e380f01 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -560,7 +560,7 @@ void NetOpenPanel::updateMRL()
     const struct caching_map *r = (const struct caching_map *)
         bsearch( qtu(proto), schemes, sizeof(schemes) / sizeof(schemes[0]),
                  sizeof(schemes[0]), strcmp_void );
-    if( r != NULL )
+    if( r != NULL && module_exists( r->caching ) )
         emit methodChanged( qfu( r->caching ) + qfu( "-caching" ) );
 
     QStringList qsl;




More information about the vlc-devel mailing list