<html><head></head><body>Hi,<br><br>I don't remember the details but this does not look compatible with the stringification trick.<br><br><div class="gmail_quote">Le 15 juillet 2019 17:00:41 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 2019-07-15 14:41, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Hi,<br><br>Did you actually test this? I doubt that would work with the plugin cache.<br></blockquote><br>Yes I did test it. Why wouldn't it work ? I still writes code in the <br>code section between vlc_module_begin() and vlc_module_end(). In the end <br>the same call to set_callbacks() and set_capability() is done.<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Le 15 juillet 2019 14:55:56 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"><hr> include/vlc_codec.h | 9 +++++++++<br> 1 file changed, 9 insertions(+)<br><br> diff --git a/include/vlc_codec.h b/include/vlc_codec.h<br> index 86f092c029..087426e7a4 100644<br> --- a/include/vlc_codec.h<br> +++ b/include/vlc_codec.h<br> @@ -534,6 +534,15 @@ typedef int<br> (*vlc_decoder_device_Open)(vlc_decoder_device *device,<br> /** "decoder device" module close entry point */<br> typedef void (*vlc_decoder_device_Close)(vlc_decoder_device *device);<br><br> +#define set_callbacks_dec_device(Activate, Deactivate, priority) \<br> + { \<br> + vlc_decoder_device_Open open__ = Activate; \<br> + vlc_decoder_device_Close close__ = Deactivate; \<br> + set_callbacks(open__, close__); \<br> + } \<br> + set_capability( "decoder device", priority )<br> +<br> +<br> /**<br> * Create a decoder device from a window<br> *<br> -- <br> 2.17.1<hr> vlc-devel mailing list<br> To unsubscribe or modify your subscription options:<br> <a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br></blockquote>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.<hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a><br><br></blockquote><hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>