From 399a955eb217c756aaea14d0c4da2172351b4661 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Mon, 25 Mar 2024 14:54:38 +0100 Subject: [PATCH] plugins/screencast: Add more debug about the format negociation with PW --- src/plugins/screencast/screencaststream.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/screencast/screencaststream.cpp b/src/plugins/screencast/screencaststream.cpp index 116f286288..e8543dac5f 100644 --- a/src/plugins/screencast/screencaststream.cpp +++ b/src/plugins/screencast/screencaststream.cpp @@ -24,6 +24,7 @@ #include "scene/workspacescene.h" #include "screencastdmabuftexture.h" #include "screencastsource.h" +#include "utils/drm_format_helper.h" #include @@ -159,6 +160,7 @@ void ScreenCastStream::onStreamParamChanged(uint32_t id, const struct spa_pod *f } if (!format || id != SPA_PARAM_Format) { + qCDebug(KWIN_SCREENCAST) << "stream param request ignored, id:" << id << "and with format:"<< (format != nullptr); return; } @@ -450,6 +452,7 @@ bool ScreenCastStream::createStream() m_cursor.positionChangedConnection = connect(Cursors::self(), &Cursors::positionChanged, this, &ScreenCastStream::recordCursor); } + qCDebug(KWIN_SCREENCAST) << "stream created, drm format:" << FormatInfo::drmFormatName(m_drmFormat) << "with DMA-BUF:" << m_hasDmaBuf; return true; } void ScreenCastStream::coreFailed(const QString &errorMessage)