#include <vlc_image.h>
#include <vlc_filter.h>
+#include <vlc_url.h>
#define ALPHAMASK_HELP N_( \
"Use an image's alpha channel as a transparency mask." )
if( p_filter->p_sys->p_mask )
picture_Release( p_filter->p_sys->p_mask );
p_image = image_HandlerCreate( p_filter );
+ char *psz_url = make_URI( psz_filename );
p_filter->p_sys->p_mask =
- image_ReadUrl( p_image, psz_filename, &fmt_in, &fmt_out );
+ image_ReadUrl( p_image, psz_url, &fmt_in, &fmt_out );
+ free( psz_url );
image_HandlerDelete( p_image );
}