bugfix: findDecoder(const Decoder&) didn't work when mfx uid was zero
Dieser Commit ist enthalten in:
Ursprung
5eaa45b3e0
Commit
b536175a4a
@ -146,11 +146,11 @@ void DecoderController::destroying()
|
||||
|
||||
DecoderController::DecoderVector::iterator DecoderController::findDecoder(const Decoder& decoder)
|
||||
{
|
||||
if(decoder.protocol == DecoderProtocol::MFX)
|
||||
{
|
||||
return findDecoderMFX(decoder.mfxUID);
|
||||
}
|
||||
return findDecoder(decoder.protocol, decoder.address);
|
||||
return std::find_if(m_decoders.begin(), m_decoders.end(),
|
||||
[ptr=&decoder](const auto& it)
|
||||
{
|
||||
return ptr == it.get();
|
||||
});
|
||||
}
|
||||
|
||||
DecoderController::DecoderVector::iterator DecoderController::findDecoder(DecoderProtocol protocol, uint16_t address)
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren