瀏覽代碼

linux-pipewire: Add missing struct typedef for older PipeWire

This allows building against PipeWire versions lower than 0.3.62.

The missing structure is copied verbatim from:
https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1423
tytan652 2 年之前
父節點
當前提交
4d5cf98de0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      plugins/linux-pipewire/pipewire.c

+ 3 - 0
plugins/linux-pipewire/pipewire.c

@@ -52,6 +52,9 @@ enum spa_meta_videotransform_value {
 
 
 #define SPA_META_VideoTransform 8
 #define SPA_META_VideoTransform 8
 
 
+struct spa_meta_videotransform {
+	uint32_t transform; /**< orientation transformation that was applied to the buffer */
+};
 #endif
 #endif
 
 
 #define CURSOR_META_SIZE(width, height)                                    \
 #define CURSOR_META_SIZE(width, height)                                    \