HACK: portal: copy external image to internal image before render. Dont stop screencast when paused as that stops recording when window is resized

This commit is contained in:
dec05eba
2024-08-15 11:13:49 +02:00
parent 7ebaf95645
commit 85d59ea2c8
3 changed files with 30 additions and 24 deletions

View File

@@ -88,8 +88,6 @@ typedef struct {
gsr_pipewire_dmabuf_data dmabuf_data[GSR_PIPEWIRE_DMABUF_MAX_PLANES];
size_t dmabuf_num_planes;
bool started;
bool stopped;
bool no_modifiers_fallback;
bool external_texture_fallback;
@@ -107,6 +105,5 @@ void gsr_pipewire_deinit(gsr_pipewire *self);
/* |plane_fds| should be at least GSR_PIPEWIRE_DMABUF_MAX_PLANES in size */
bool gsr_pipewire_map_texture(gsr_pipewire *self, gsr_texture_map texture_map, gsr_pipewire_region *region, gsr_pipewire_region *cursor_region, int *plane_fds, int *num_plane_fds, bool *using_external_image);
bool gsr_pipewire_recording_stopped(gsr_pipewire *self);
#endif /* GSR_PIPEWIRE_H */