浏览代码

linux-pipewire: Demote error to debug message

Receiving buffers flagged as corrupted, or empty, is a casualty of
how things are implemented in various compositors, and it's not
a critical situation to be afraid of. We can expect a few buffers
to be flagged as corrupted here and there, and that's fine.

Demote these warnings to debug messages, as they're still useful
for debugging.
Georges Basile Stavracas Neto 2 年之前
父节点
当前提交
be629b93ce
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/linux-pipewire/pipewire.c

+ 2 - 2
plugins/linux-pipewire/pipewire.c

@@ -567,13 +567,13 @@ static void on_process_cb(void *user_data)
 
 
 		if ((buffer->datas[0].chunk->flags & SPA_CHUNK_FLAG_CORRUPTED) >
 		if ((buffer->datas[0].chunk->flags & SPA_CHUNK_FLAG_CORRUPTED) >
 		    0) {
 		    0) {
-			blog(LOG_ERROR,
+			blog(LOG_DEBUG,
 			     "[pipewire] buffer contains corrupted data");
 			     "[pipewire] buffer contains corrupted data");
 			goto read_metadata;
 			goto read_metadata;
 		}
 		}
 
 
 		if (buffer->datas[0].chunk->size == 0) {
 		if (buffer->datas[0].chunk->size == 0) {
-			blog(LOG_ERROR,
+			blog(LOG_DEBUG,
 			     "[pipewire] buffer contains empty data");
 			     "[pipewire] buffer contains empty data");
 			goto read_metadata;
 			goto read_metadata;
 		}
 		}