[vlc-commits] commit: Fixed vout-filter change support in qt4. (Laurent Aimar )
git at videolan.org
git at videolan.org
Mon Oct 25 20:41:54 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Oct 23 23:09:11 2010 +0200| [88937154f1eaddcc97dddbaa27f30ead72429f3e] | committer: Laurent Aimar
Fixed vout-filter change support in qt4.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88937154f1eaddcc97dddbaa27f30ead72429f3e
---
modules/gui/qt4/components/extended_panels.cpp | 27 ++++++++++++-----------
1 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 18a10dd..c429d08 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -278,21 +278,14 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
char *psz_parser, *psz_string;
const char *psz_filter_type;
- /* FIXME temporary hack */
- const char *psz_module_name = psz_name;
- if( !strcmp( psz_name, "wall" ) ||
- !strcmp( psz_name, "panoramix" ) ||
- !strcmp( psz_name, "clone" ) )
- psz_module_name = "video_filter_wrapper";
-
- module_t *p_obj = module_find( psz_module_name );
+ module_t *p_obj = module_find( psz_name );
if( !p_obj )
{
msg_Err( p_intf, "Unable to find filter module \"%s\".", psz_name );
return;
}
- if( module_provides( p_obj, "video filter" ) )
+ if( module_provides( p_obj, "video splitter" ) )
{
psz_filter_type = "vout-filter";
}
@@ -367,11 +360,19 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
config_PutPsz( p_intf, psz_filter_type, psz_string );
/* Try to set on the fly */
- p_vout = THEMIM->getVout();
- if( p_vout )
+ if( !strcmp( psz_filter_type, "vout-filter" ) )
{
- var_SetString( p_vout, psz_filter_type, psz_string );
- vlc_object_release( p_vout );
+ playlist_t *p_playlist = pl_Get( p_intf );
+ var_SetString( p_playlist, psz_filter_type, psz_string );
+ }
+ else
+ {
+ p_vout = THEMIM->getVout();
+ if( p_vout )
+ {
+ var_SetString( p_vout, psz_filter_type, psz_string );
+ vlc_object_release( p_vout );
+ }
}
free( psz_string );
More information about the vlc-commits
mailing list