[vlc-devel] [PATCH 3/9] vlc_codec: add decoder_ResetOuput() to reset failing decoder init
Steve Lhomme
robux4 at gmail.com
Thu Jul 13 11:58:21 CEST 2017
On Wed, Jul 12, 2017 at 5:29 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> On mercredi 12 juillet 2017 16:54:06 EEST Steve Lhomme wrote:
>> Since the module loading doesn't go back to the decoder loading between
>> elements, it's up to the failing decoder to clean up the mess it did before
>> trying the next decoder.
>
> This is very brittle. If you feel the need to reset something on "next" plugin
> probe, you can do it in the vlc_module_load callback (e.g. demux).
Yes that's doable. But if we want to not rely on the decoders being
clean (which is probably what we want) we want to do it for all the
part of the code that load a decoder module. If we want to avoid
duplicate code that means a new API entry in vlccore
(decoder_LoadModule).
I am preparing a patch with this.
> --
> Rémi Denis-Courmont
> _______________________________________________
> 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