diff --git a/core/data_provider/VrsDataProviderFactory.cpp b/core/data_provider/VrsDataProviderFactory.cpp index 12d261797..b475cc3df 100644 --- a/core/data_provider/VrsDataProviderFactory.cpp +++ b/core/data_provider/VrsDataProviderFactory.cpp @@ -119,7 +119,8 @@ void VrsDataProviderFactory::addPlayers() { const SensorDataType sensorDataType = getSensorDataType(streamId.getTypeId()); // Define a lambda that sets the StreamPlayer to the reader and log its streamId - auto setStreamAndLog = [=](const vrs::StreamId, vrs::RecordFormatStreamPlayer* player) -> void { + auto setStreamAndLog = [=, this]( + const vrs::StreamId, vrs::RecordFormatStreamPlayer* player) -> void { reader_->setStreamPlayer(streamId, player); XR_LOGI( "streamId {}/{} activated",