<html><head></head><body>Hi,<br><br>WTH do you need private controls?! If you have 1:1 coupling across the ES output interface, just call your private functions directly and leave the generic controls out of that mess.<br><br><div class="gmail_quote">Le 20 avril 2020 21:27:25 GMT+03:00, Francois Cartegnie <fcvlcdev@free.fr> 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">you can't have assert() between priv/public spaces<br>if the enums can collide<hr> include/vlc_es_out.h | 2 +-<br> src/input/es_out.h | 4 +++-<br> 2 files changed, 4 insertions(+), 2 deletions(-)<br><br>diff --git a/include/vlc_es_out.h b/include/vlc_es_out.h<br>index 49635f8594..a839688050 100644<br>--- a/include/vlc_es_out.h<br>+++ b/include/vlc_es_out.h<br>@@ -114,7 +114,7 @@ enum es_out_query_e<br> arg2= const vlc_spu_highlight_t *, res=can fail */<br> <br> /* First value usable for private control */<br>- ES_OUT_PRIVATE_START = 0x10000,<br>+ ES_OUT_PRIVATE_START = 0x20000,<br> };<br> <br> enum es_out_policy_e<br>diff --git a/src/input/es_out.h b/src/input/es_out.h<br>index cc8ce55a6a..79087aa963 100644<br>--- a/src/input/es_out.h<br>+++ b/src/input/es_out.h<br>@@ -35,10 +35,12 @@ enum es_out_mode_e<br> ES_OUT_MODE_END /* mark the es_out as dead */<br> };<br> <br>+#define ES_OUT_TIMESHIFT_PRIVATE_START 0x10000<br>+<br> enum es_out_query_private_e<br> {<br> /* set/get mode */<br>- ES_OUT_PRIV_SET_MODE, /* arg1= int */<br>+ ES_OUT_PRIV_SET_MODE = ES_OUT_TIMESHIFT_PRIVATE_START, /* arg1= int */<br> <br> /* Same than ES_OUT_SET_ES/ES_OUT_UNSET_ES/ES_OUT_RESTART_ES, but with vlc_es_id_t * */<br> ES_OUT_PRIV_SET_ES, /* arg1= vlc_es_id_t* */</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>