Commit 3de142a4 authored by Laurent Aimar's avatar Laurent Aimar

Temporary workaround for video filter wrapper in qt4.

parent 9a9cca16
...@@ -255,20 +255,25 @@ void ExtVideo::ChangeVFiltersString( const char *psz_name, bool b_add ) ...@@ -255,20 +255,25 @@ 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;
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 ) 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 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" ) ) else if( module_provides( p_obj, "sub filter" ) )
{ {
......
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