Commit 88937154 authored by Laurent Aimar's avatar Laurent Aimar

Fixed vout-filter change support in qt4.

parent 35e5c857
...@@ -278,21 +278,14 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add ) ...@@ -278,21 +278,14 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
char *psz_parser, *psz_string; char *psz_parser, *psz_string;
const char *psz_filter_type; const char *psz_filter_type;
/* FIXME temporary hack */ module_t *p_obj = module_find( psz_name );
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 );
if( !p_obj ) if( !p_obj )
{ {
msg_Err( p_intf, "Unable to find filter module \"%s\".", psz_name ); msg_Err( p_intf, "Unable to find filter module \"%s\".", psz_name );
return; return;
} }
if( module_provides( p_obj, "video filter" ) ) if( module_provides( p_obj, "video splitter" ) )
{ {
psz_filter_type = "vout-filter"; psz_filter_type = "vout-filter";
} }
...@@ -367,11 +360,19 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add ) ...@@ -367,11 +360,19 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add )
config_PutPsz( p_intf, psz_filter_type, psz_string ); config_PutPsz( p_intf, psz_filter_type, psz_string );
/* Try to set on the fly */ /* Try to set on the fly */
p_vout = THEMIM->getVout(); if( !strcmp( psz_filter_type, "vout-filter" ) )
if( p_vout )
{ {
var_SetString( p_vout, psz_filter_type, psz_string ); playlist_t *p_playlist = pl_Get( p_intf );
vlc_object_release( p_vout ); 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 ); free( psz_string );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment