<div dir="ltr">Ok, I was trying to avoid duplicating the flow of subfilters, adding "2" to every step.. it seems too messy.<br>At the moment the flow, from the global variable to the spu is:<br><br>- adding subfilter configuration string to "sub-filter" variable<br>
- SubFilterCallback<br>- vout_ControlChangeSubFilters (creates new command)<br>- Thread / VOUT_CONTROL_CHANGE_SUB_FILTERS (executes the command)<br>- ThreadChangeSubFilters<br>- spu_ChangeFilters finally saves the string locally<br>
<br>Am I missing something? is there another way?<br><br><div class="gmail_quote">2011/3/25 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net">remi@remlab.net</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Fri, 25 Mar 2011 00:22:49 +0200, Yuval Tze <<a href="mailto:yuvaltze@gmail.com">yuvaltze@gmail.com</a>> wrote:<br>
> new filter type for processing subtitles.<br>
<br>
</div>Checking the capability on-the-fly with module_find() will probably not<br>
work correctly. Some modules might have aliases. Furthermore, the chaining<br>
order would be violated if there is a mix of sub and sub2 in the same<br>
filter chain string.<br>
Thus, I would recommend using two different chain configuration strings<br>
even if it might be a bit confusing in a way.<br>
<br>
(And module_find() would need to be paired with module_release()).<br>
<br>
Best regards,<br>
<font color="#888888"><br>
--<br>
Rémi Denis-Courmont<br>
<a href="http://www.remlab.net/" target="_blank">http://www.remlab.net/</a><br>
</font></blockquote></div><br></div>