aja: Fix format-security warning
On some Linux distributions -Werror=format-security is set when building package keeping OBS Studio from being built with AJA plugins.
This commit is contained in:
parent
ffc55b2d3a
commit
9d02ca0fef
@ -574,8 +574,7 @@ void Routing::LogRoutingPreset(const RoutingPreset &rp)
|
|||||||
};
|
};
|
||||||
|
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << "[ AJA Crosspoint Routing Preset ]"
|
ss << "\nPreset: " << rp.name;
|
||||||
<< "\nPreset: " << rp.name;
|
|
||||||
if (rp.kind == ConnectionKind::SDI) {
|
if (rp.kind == ConnectionKind::SDI) {
|
||||||
ss << "\nVPID Standard: 0x"
|
ss << "\nVPID Standard: 0x"
|
||||||
<< hexStr(static_cast<uint8_t>(rp.vpid_standard));
|
<< hexStr(static_cast<uint8_t>(rp.vpid_standard));
|
||||||
@ -584,7 +583,7 @@ void Routing::LogRoutingPreset(const RoutingPreset &rp)
|
|||||||
<< "\nChannels: " << rp.num_channels
|
<< "\nChannels: " << rp.num_channels
|
||||||
<< "\nFramestores: " << rp.num_framestores;
|
<< "\nFramestores: " << rp.num_framestores;
|
||||||
|
|
||||||
blog(LOG_INFO, ss.str().c_str());
|
blog(LOG_INFO, "[ AJA Crosspoint Routing Preset ]%s", ss.str().c_str());
|
||||||
|
|
||||||
if (rp.device_ids.size() > 0) {
|
if (rp.device_ids.size() > 0) {
|
||||||
ss.clear();
|
ss.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user