[vlc-devel] [RFC PATCH 0/2] decoder: restart module if fmt_in changes
Rémi Denis-Courmont
remi at remlab.net
Mon Sep 7 15:00:36 CEST 2015
Le 2015-09-07 15:48, Thomas Guillem a écrit :
> I have several comments:
>
> - When we restart the decoder module, should we insure that we
> re-open the
> same module than before ? Currently it's not the case.
Definitely not: The format could change in such ways that the old
decoder can no longer decode (especially hardware accelerated ones).
> - Nothing force the new decoder module to need a packetizer. In the
> case where it doesn't need one, I decided to unload the packetizer
> and
> continue without it. Not sure it's the best thing to do.
I doubt that will work. Most (if not all) packetizers cache and delay
payloads internally, such that data will be lost if you ever unload the
packetizer.
If at all possible, I would phase out !b_need_packetizer. Most video
codecs need a packetizer, and the performance impact on non-packetized
audio and subtitle decoders should be negligible.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list