Fix bad format string

This commit is contained in:
Nicolas Werner 2022-05-19 22:08:12 +02:00
parent ed46a06a76
commit 28ff6fa484
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ removeDevice(T &sources, GstDevice *device, bool changed)
if (auto it = std::find_if(
sources.begin(), sources.end(), [device](const auto &s) { return s.device == device; });
it != sources.end()) {
nhlog::ui()->debug(
std::string("WebRTC: device ") + (changed ? "changed: " : "removed: ") + "{}", it->name);
nhlog::ui()->debug("WebRTC: device {}: {}", (changed ? "changed" : "removed"), it->name);
gst_object_unref(device);
sources.erase(it);
return true;