diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-19 22:08:04 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-19 22:08:04 +0200 |
commit | 637d306a243e83c797f4a818cb0342d9af564843 (patch) | |
tree | 723d6978da05606e1972baf1230d8e44a66392e1 /include/pipewire.h | |
parent | 739fab83ba60087eb598a0fc8732c1bc7669b839 (diff) |
Stop recording when pipewire target window is closed or when pressing close in the desktop environments record button
Diffstat (limited to 'include/pipewire.h')
-rw-r--r-- | include/pipewire.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |