<html><head></head><body>Hi,<br><br>I don't think that'll work if there are submodules with different open/close callbacks. Possibly this never happens yet, but that is going to be a PITA to debug if it ever does occur.<br><br><div class="gmail_quote">Le 15 juillet 2019 14:57:20 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">Also set the capability at the same time as the (de)activate callbacks.<hr> include/vlc_vout_display.h | 9 +++++++++<br> 1 file changed, 9 insertions(+)<br><br>diff --git a/include/vlc_vout_display.h b/include/vlc_vout_display.h<br>index fd4940cf6d..09b14ab297 100644<br>--- a/include/vlc_vout_display.h<br>+++ b/include/vlc_vout_display.h<br>@@ -215,6 +215,15 @@ typedef int (*vout_display_open_cb)(vout_display_t *vd,<br> */<br> typedef void (*vout_display_close_cb)(vout_display_t *vd);<br> <br>+#define set_callbacks_display(Activate, Deactivate, priority) \<br>+ { \<br>+ vout_display_open_cb open__ = Activate; \<br>+ vout_display_close_cb close__ = Deactivate; \<br>+ set_callbacks(open__, close__); \<br>+ } \<br>+ set_capability( "vout display", priority )<br>+<br>+<br> struct vout_display_t {<br> struct vlc_object_t obj;<br> </pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>