[vlc-devel] [PATCH 6/5] [RFC] input: allow setting the "sout" while playing and restart the output accordingly

Steve Lhomme robux4 at gmail.com
Tue Apr 26 13:45:38 CEST 2016


On Sat, Apr 23, 2016 at 3:09 PM, Steve Lhomme <robux4 at gmail.com> wrote:
> On Sat, Apr 23, 2016 at 11:52 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>> On Friday 22 April 2016 17:56:46 Steve Lhomme wrote:
>>> setting the "sout" on the libvlc instance also works, rather than the
>>> input_thread_t
>>
>> No. This is known to cause a lot of problems and have caused a lot more in the
>> past.
>
> Where is the user supposed to set the "sout" (by means of the UI) so
> that it uses the proper render?
>
>  Looking at the "vout" it's either in the config or directly on the
> currently playing input_thread_t. I'm fine with setting the value in
> the config, the user will have to explicitly disable the renderer
> between VLC launches.

If we want to be able to update the output chain when the "sout" is
set/unset during playback, we need a way to hook the callback on the
"sout" variable. Either we put it that variable in the core, either we
put it in the playlist (overloaded with unrelated stuff already) and
in the libvlc mediaplayer. With that second option we may not even
need a callback. They can both know when the "sout" is changed and act
accordingly. Probably call a function that would set b_restart_output
seen in this patch.

>> --
>> Rémi Denis-Courmont
>> http://www.remlab.net/
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list