13
0

PulseAudio: drop idempotent dynamic cast

This commit is contained in:
Mads Kiilerich 2022-10-30 21:03:08 +01:00 committed by Robin Gareus
parent 5bb7336c79
commit b046ffe395
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1073,8 +1073,7 @@ PulseAudioBackend::main_process_thread ()
/* interleave */
for (std::vector<BackendPortPtr>::const_iterator it = _system_outputs.begin (); it != _system_outputs.end (); ++it, ++i) {
BackendPortPtr port = boost::dynamic_pointer_cast<BackendPort> (*it);
const float* src = (const float*) port->get_buffer (_samples_per_period);
const float* src = (const float*) (*it)->get_buffer (_samples_per_period);
for (size_t n = 0; n < _samples_per_period; ++n) {
buf[N_CHANNELS * n + i] = src[n];
}