<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Rafael,</span></div><div><span><br></span></div><div><span>Thank you for your help.</span></div><div><br><span></span></div><div><span>My filename is MyCompanyMyTest.cpp. However, I would think that shouldn't make a difference.</span></div><div><br><span></span></div><div><span>The .so file created is</span><span> libMyTest_plugin.so.</span></div><div><br><span></span></div><div><span>After doing some debugging, it turns out even marquee module logs exactly the same error.  However, it looks like it is not a fatal error as marquee continues to work as expected.<br></span></div><div><br><span></span></div><div><span>I fixed a bug in my code. Now it works. However, both marquee as well as my module log identical
 error.</span></div><div><br><span></span></div><div><span>Regards,</span></div><div><span>Peter</span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Rafaël Carré <funman@videolan.org><br> <b><span style="font-weight: bold;">To:</span></b> Mailing list for VLC media player developers <vlc-devel@videolan.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, March 21, 2012 12:27 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vlc-devel] Video filter fails to load<br> </font> </div> <br>
Le 2012-03-21 00:01, Peter Tap a écrit :<br>> Folks,<br>> <br>> I am working on a custom video filter. At present, it requires no additional parameters:<br>> <br>> 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>> <br>> <br>> As my filter is close in functionality to marquee filter, I copied the code from marq.c and made relevant changes.<br><br>> <br>> <br>> When I run vlc --list, I see that my filter module gets listed.<br>> <br>> mytest          Mytest desc<br>> <br>> <br>> However, when I run "vlc --sub-filter=mytest," I get an error that
 it failed to create my filter:<br><br>What is the filename of your filter?<br><br>I think set_shortname or code using it is broken or buggy.<br><br>> [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<br>> <br>> 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>> <br>> <br>> I am wondering if anyone has any idea on what is going on.<br>> <br>> 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>> <br>> <br>>    /*<br>>     config_ChainParse( p_filter, CFG_PREFIX, ppsz_filter_options,<br>>                        p_filter->p_cfg );<br>>     */<br><br>should make no difference, you can remove ppsz_filter_options from your<br>code too.<br><br>> Thank you in advance for your help.<br>> <br>> Regards,<br>> Peter<br>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br>http://mailman.videolan.org/listinfo/vlc-devel<br><br><br> </div> </div>  </div></body></html>