[vlc-devel] commit: Temporary workaround for video filter wrapper in qt4. ( Laurent Aimar )

git version control git at videolan.org
Wed Jun 3 23:44:44 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed Jun  3 23:15:07 2009 +0200| [3de142a4a1d9450fda4a5c2d115b7868d261312b] | committer: Laurent Aimar 

Temporary workaround for video filter wrapper in qt4.

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

 modules/gui/qt4/components/extended_panels.cpp |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 330d24c..f68e64c 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -255,20 +255,25 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
     char *psz_parser, *psz_string;
     const char *psz_filter_type;
 
-    module_t *p_obj = module_find( psz_name );
+    /* FIXME temporary hack */
+    const char *psz_module_name = psz_name;
+    if( !strcmp( psz_name, "magnify" ) )
+        psz_module_name = "video_filter_wrapper";
+
+    module_t *p_obj = module_find( psz_module_name );
     if( !p_obj )
     {
         msg_Err( p_intf, "Unable to find filter module \"%s\".", psz_name );
         return;
     }
 
-    if( module_provides( p_obj, "video filter2" ) )
+    if( module_provides( p_obj, "video filter" ) )
     {
-        psz_filter_type = "video-filter";
+        psz_filter_type = "vout-filter";
     }
-    else if( module_provides( p_obj, "video filter" ) )
+    else if( module_provides( p_obj, "video filter2" ) )
     {
-        psz_filter_type = "vout-filter";
+        psz_filter_type = "video-filter";
     }
     else if( module_provides( p_obj, "sub filter" ) )
     {




More information about the vlc-devel mailing list