Route desktop codec diagnostics through the shared log
Quiet capability probes, preserve runtime errors, and register the desktop portal application. Add logging and desktop launcher regression coverage.
This commit is contained in:
1 parent
35327260e0
commit
a854f02abb
17 files changed
+349
-44
No files matched your search
@@ -1,5 +1,5 @@
|
||||
#include "call_video_encoder.h"
|
||||
#include "debug_config.h"
|
||||
#include "video_codec_log.h"
|
||||
#include "../../../src/call/call_video_rate.h"
|
||||
#include "../../../src/call/call_video_bitstream.h"
|
||||
#include <QElapsedTimer>
|
||||
@@ -9,7 +9,7 @@ bool CallVideoEncoder::open(const call_video_format& format, uint32_t bitrate, c
|
||||
if (!call_video_format_valid(&format) || bitrate < CALL_VIDEO_RATE_MIN_BPS || bitrate > format.maximum_bps
|
||||
|| (format.codec == CALL_VIDEO_H265 && format.profile != CALL_VIDEO_MAIN)) {
|
||||
m_error = "Invalid call video encoder configuration";
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "call video open invalid generation=%llu codec=%u level=%u bitrate=%u cap=%u profile=%u",
|
||||
CODEC_LOG(DEBUG_LEVEL_ERROR, DEBUG_CATEGORY_CALL, "call video open invalid generation=%llu codec=%u level=%u bitrate=%u cap=%u profile=%u",
|
||||
(unsigned long long)format.generation, format.codec, format.level, bitrate, format.maximum_bps, format.profile); return false;
|
||||
}
|
||||
LiveVideoConfig config;
|
||||
@@ -19,10 +19,11 @@ bool CallVideoEncoder::open(const call_video_format& format, uint32_t bitrate, c
|
||||
config.profile = format.codec == CALL_VIDEO_H264 ? LiveVideoProfile::H264ConstrainedBaseline : LiveVideoProfile::H265Main;
|
||||
auto candidate = std::make_unique<LiveVideoEncoder>();
|
||||
if (!candidate->open(config, LiveVideoEncoder::Backend::Automatic)) {
|
||||
m_error = candidate->error(); DEBUG_ERROR(DEBUG_CATEGORY_CALL, "call video open failed: %s", qPrintable(m_error)); return false;
|
||||
m_error = candidate->error(); CODEC_LOG(DEBUG_LEVEL_ERROR, DEBUG_CATEGORY_CALL,
|
||||
"call video open failed: %s", qPrintable(m_error)); return false;
|
||||
}
|
||||
close(); m_encoder = std::move(candidate); m_config = config; m_config.backend = m_encoder->name(); m_format = format;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_CALL, "call video encoder opened generation=%llu codec=%d encoder=%s bitrate=%d level=%d",
|
||||
CODEC_LOG(DEBUG_LEVEL_INFO, DEBUG_CATEGORY_CALL, "call video encoder opened generation=%llu codec=%d encoder=%s bitrate=%d level=%d",
|
||||
(unsigned long long)format.generation, config.codec, qPrintable(m_config.backend), config.bitrate, config.level); return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user