<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Folks,</div><div><br></div><div>I am working on a custom video filter. At present, it requires no additional parameters:</div><div><br></div><div>vlc_module_begin ()<br>    set_capability( "sub source", 100 )<br>    set_shortname( N_("Mytest ))<br>    set_description( N_("Mytest desc") )<br>    set_callbacks( CreateFilter, DestroyFilter )<br>    set_category( CAT_VIDEO )<br>    set_subcategory( SUBCAT_VIDEO_SUBPIC )<br>vlc_module_end ()<br></div><div><br></div><div>As my filter is close in functionality to marquee filter, I copied the code from marq.c and made relevant changes.<br></div><div><br></div><div>When I run vlc --list, I see that my filter module gets
 listed.</div><div><br></div><div>mytest          Mytest desc<br> </div><div><br></div><div>However, when I run "vlc --sub-filter=mytest," I get an error that it failed to create my filter:</div><div><br></div><div>[0x88d3bc0] main filter debug: looking for sub filter module: 0 candidates<br>[0x88d3bc0] main filter debug: no sub filter module matched "mytest"<br>[0x88d3bc0] main filter debug: TIMER module_need() : 0.204 ms - Total 0.204 ms / 1 intvls (Avg 0.204 ms)<br>[0x8885010] main subpicture error: Failed to create sub filter 'mytest'<br>[0x8885010] main subpicture error: Failed while trying to append 'mytest' to filter chain</div><div><br></div><div>In the debugger, I see that after the errors are reported, it does invoke my CreateFilter method. However, something has already gone wrong by this time. Hence, my filter doesn't work as it is supposed to.<br></div><div><br></div><div>I am wondering if anyone
 has any idea on what is going on.</div><div><br></div><div>One more question, the marquee control makes a call to config_ChainParser in its CreateFilter method. However, as I don't require any parameters, I commented out the line. Would that make any difference?<br></div><div><br></div><div>   /*<br>    config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,<br>                       p_filter->p_cfg );<br>    */<br></div><div><br></div><div>Thank you in advance for your help.</div><div><br></div><div>Regards,</div><div>Peter</div><div><br></div></div></body></html>