<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-08 20:15 GMT+02:00 Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le mardi 8 juillet 2014, 17:26:27 Felix Abecassis a écrit :<br>
<div class="">> 2014-07-08 17:14 GMT+02:00 Jean-Baptiste Kempf <<a href="mailto:jb@videolan.org">jb@videolan.org</a>>:<br>
> > Good idea: we really need that.<br>
> ><br>
> > Does it fire when new ES appear or when an ES characteristic change ?<br>
><br>
> When a ES is added, deleted or selected. So the libvlc user should save the<br>
> number of audio/video/spu tracks in order to know which case happened.<br>
<br>
</div>Does it have to be that inconvenient? Can't we at least supply the track ID?<br></blockquote><div><br><div>Do you have any insights on how to improve this?<br><br></div>In
src/input/event.c, we set "intf-event" to INPUT_EVENT_ES. The libVLC
code registered a callback on this variable, but I see no way of knowing
which track changed and what was the change (add, select or delete).<br><br></div><div>I see a few options here:<br></div><div>1) We could use an additional variable to know which track was modified. This is what we do with INPUT_EVENT_STATE for instance.<br>
</div><div>2) We could set up callbacks on variables "video-es", "audio-es" and "spu-es" from libvlc, however callbacks are currently not triggered when adding/removing choices from a list. We could add a new type of callbacks (e.g. var_AddListCallback) in order to be notified when a list changes. Or we could maybe trigger the existing callbacks in this case.<br>
</div><div>3) Add an internal core event that could store ES type, track id and the operation. The libVLC code could listen to this event and then translate it to a libVLC event. However I don't think this event should be in the core.<br>
</div><div> <br></div><div>Maybe you have other ideas. I would be glad to hear your thoughts on this, Rémi.<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class=""><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></span><div class=""><div class="h5"><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Félix Abecassis<div><a href="http://felix.abecassis.me" target="_blank">http://felix.abecassis.me</a></div>
</div></div>