[vlc-devel] LibVLC vmem vout and Elementary Stream ID

Jérôme Forissier jerome at taodyne.com
Thu Feb 27 11:26:34 CET 2014

On 26 févr. 2014, at 18:40, Rémi Denis-Courmont wrote:

> Le mercredi 26 février 2014, 18:27:05 Jérôme Forissier a écrit :
>> So I am proposing to add a
>> new parameter to setup(): int es_id, "the ID of the elementary stream that
>> caused the decoder to instantiate the video output".
> You cannot add *any* new parameter. That would break binary compatibility. You 
> need to either add a new callback, or a new function.

Sure. Or, what about using a thread-specific variable to store the ID?
From an API standpoint it would mean just one new function, say:
int libvlc_video_cb_get_es_id()
- When called from a video output thread (i.e., from any video callback, typically:
setup), the function would return the ES id set by the decoder upon creation
of the vout.
- When called from any other thread, it would return -1.



More information about the vlc-devel mailing list