[plasma/kpipewire] src: PipeWireBaseEncodedStream: allow opening stream with objectSerial alone

Liu Jie <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit d0c68844cd9f78d78fa6d64be8fb22acfe58a8d7 by Liu Jie, on behalf of Jie Liu.
Committed on 15/07/2026 at 07:33.
Pushed by meven into branch 'master'.

PipeWireBaseEncodedStream: allow opening stream with objectSerial alone

Previously start() relied on nodeId to open a stream. Now objectSerial
alone is sufficient.

M  +2    -2    src/pipewirebaseencodedstream.cpp

https://invent.kde.org/plasma/kpipewire/-/commit/d0c68844cd9f78d78fa6d64be8fb22acfe58a8d7

diff --git a/src/pipewirebaseencodedstream.cpp b/src/pipewirebaseencodedstream.cpp
index a84db90..595dad0 100644
--- a/src/pipewirebaseencodedstream.cpp
+++ b/src/pipewirebaseencodedstream.cpp
@@ -185,8 +185,8 @@ void PipeWireBaseEncodedStream::setActive(bool active)
 
 void PipeWireBaseEncodedStream::start()
 {
-    if (d->m_nodeId == 0) {
-        qCWarning(PIPEWIRERECORD_LOGGING) << "Cannot start recording on a stream without a node ID";
+    if (d->m_nodeId == 0 && d->m_objectSerial == quint64(-1)) {
+        qCWarning(PIPEWIRERECORD_LOGGING) << "Cannot start recording on a stream without a node ID or an object serial";
         return;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.