浏览代码

camera: don't use newer PipeWire cleanup features

Wim Taymans 2 年之前
父节点
当前提交
8186e4b322
共有 1 个文件被更改,包括 1 次插入 和 2 次删除
  1. 1 2
      src/camera/pipewire/SDL_camera_pipewire.c

+ 1 - 2
src/camera/pipewire/SDL_camera_pipewire.c

@@ -25,7 +25,6 @@
 
 
 #include "../SDL_syscamera.h"
 #include "../SDL_syscamera.h"
 
 
-#include <spa/utils/cleanup.h>
 #include <spa/utils/type.h>
 #include <spa/utils/type.h>
 #include <spa/pod/builder.h>
 #include <spa/pod/builder.h>
 #include <spa/pod/iter.h>
 #include <spa/pod/iter.h>
@@ -489,7 +488,7 @@ static int PIPEWIRECAMERA_OpenDevice(SDL_CameraDevice *device, const SDL_CameraS
     }
     }
 
 
     device->hidden->stream = PIPEWIRE_pw_stream_new(hotplug.core,
     device->hidden->stream = PIPEWIRE_pw_stream_new(hotplug.core,
-		    "SDL PipeWire Camera", spa_steal_ptr(props));
+		    "SDL PipeWire Camera", props);
     if (device->hidden->stream == NULL) {
     if (device->hidden->stream == NULL) {
         return -1;
         return -1;
     }
     }