From 637d306a243e83c797f4a818cb0342d9af564843 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 19 Jul 2024 22:08:04 +0200 Subject: Stop recording when pipewire target window is closed or when pressing close in the desktop environments record button --- include/pipewire.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/pipewire.h b/include/pipewire.h index 2e22ccc..2a0b134 100644 --- a/include/pipewire.h +++ b/include/pipewire.h @@ -68,6 +68,9 @@ typedef struct { gsr_pipewire_data_version server_version; gsr_pipewire_video_info video_info; gsr_pipewire_dmabuf_data dmabuf_data; + + bool started; + bool stopped; } gsr_pipewire; /* @@ -79,5 +82,6 @@ bool gsr_pipewire_init(gsr_pipewire *self, int pipewire_fd, uint32_t pipewire_no void gsr_pipewire_deinit(gsr_pipewire *self); bool gsr_pipewire_map_texture(gsr_pipewire *self, unsigned int texture_id, unsigned int cursor_texture_id, gsr_pipewire_region *region, gsr_pipewire_region *cursor_region, int *plane_fd); +bool gsr_pipewire_recording_stopped(gsr_pipewire *self); #endif /* GSR_PIPEWIRE_H */ -- cgit v1.2.3