[vlc-devel] [PATCH 1/5] es_out: split controls range

Rémi Denis-Courmont remi at remlab.net
Tue Apr 21 14:14:57 CEST 2020


Hi,

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.

Le 20 avril 2020 21:27:25 GMT+03:00, Francois Cartegnie <fcvlcdev at free.fr> a écrit :
>you can't have assert() between priv/public spaces
>if the enums can collide
>---
> include/vlc_es_out.h | 2 +-
> src/input/es_out.h   | 4 +++-
> 2 files changed, 4 insertions(+), 2 deletions(-)
>
>diff --git a/include/vlc_es_out.h b/include/vlc_es_out.h
>index 49635f8594..a839688050 100644
>--- a/include/vlc_es_out.h
>+++ b/include/vlc_es_out.h
>@@ -114,7 +114,7 @@ enum es_out_query_e
>                    arg2= const vlc_spu_highlight_t *, res=can fail  */
> 
>     /* First value usable for private control */
>-    ES_OUT_PRIVATE_START = 0x10000,
>+    ES_OUT_PRIVATE_START = 0x20000,
> };
> 
> enum es_out_policy_e
>diff --git a/src/input/es_out.h b/src/input/es_out.h
>index cc8ce55a6a..79087aa963 100644
>--- a/src/input/es_out.h
>+++ b/src/input/es_out.h
>@@ -35,10 +35,12 @@ enum es_out_mode_e
>     ES_OUT_MODE_END     /* mark the es_out as dead */
> };
> 
>+#define ES_OUT_TIMESHIFT_PRIVATE_START 0x10000
>+
> enum es_out_query_private_e
> {
>     /* set/get mode */
>-    ES_OUT_PRIV_SET_MODE,                           /* arg1= int */
>+    ES_OUT_PRIV_SET_MODE = ES_OUT_TIMESHIFT_PRIVATE_START, /* arg1=
>int */
> 
>/* Same than ES_OUT_SET_ES/ES_OUT_UNSET_ES/ES_OUT_RESTART_ES, but with
>vlc_es_id_t * */
>    ES_OUT_PRIV_SET_ES,      /* arg1= vlc_es_id_t*                   */
>-- 
>2.25.3
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200421/34022270/attachment.html>


More information about the vlc-devel mailing list