EMM sent to the wrong reader
|Reported by:||neoen||Owned by:|
In some conditions and using dvbapi, EMMs received for a caid is sent to another reader with a different caid.
When the issue occurs
When two (at least) different cards with different caid are used simultaneously (recording + live view), if autoau user is configured and demux emm filters are enabled for both caid, emm are sent to the last reader which received an ecm. This happens because client->aureader is changed during ecm handling.
In log file you can see how an emm receiced by demux filter with fd 28 for reader 'mediaset' (caid 1803) is erroneously sent to reader 'sky' (caid 0919).
In attachment also my attempt to fix this bug, tested with build 4005.
How the issue is reproducable
Dvbapi enabled and configured with autoau user.
With two cards, start recording a channel with caid of first card and then switch to another channel with caid of second card. All emm are always sent to the last reader which receives an ecm.