Disable automatic conversions from 8-bit strings

This commit is contained in:
Jonas Kvinge
2024-04-11 02:56:01 +02:00
parent 58944993b8
commit 0c6872b352
310 changed files with 2501 additions and 2332 deletions

View File

@@ -208,7 +208,7 @@ class EBUR128AnalysisImpl {
FrameFormat::FrameFormat(GstCaps *caps) : channels(0), channel_mask(0), samplerate(0) {
GstStructure *structure = gst_caps_get_structure(caps, 0);
QString format_str = gst_structure_get_string(structure, "format");
QString format_str = QString::fromUtf8(gst_structure_get_string(structure, "format"));
gst_structure_get_int(structure, "rate", &samplerate);
gst_structure_get_int(structure, "channels", &channels);
const GValue *value = gst_structure_get_value(structure, "channel-mask");
@@ -216,16 +216,16 @@ FrameFormat::FrameFormat(GstCaps *caps) : channels(0), channel_mask(0), samplera
channel_mask = gst_value_get_bitmask(value);
}
if (format_str == "S16LE") {
if (format_str == QStringLiteral("S16LE")) {
format = DataFormat::S16;
}
else if (format_str == "S32LE") {
else if (format_str == QStringLiteral("S32LE")) {
format = DataFormat::S32;
}
else if (format_str == "F32LE") {
else if (format_str == QStringLiteral("F32LE")) {
format = DataFormat::FP32;
}
else if (format_str == "F64LE") {
else if (format_str == QStringLiteral("F64LE")) {
format = DataFormat::FP64;
}
else {