diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-15 11:13:49 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-15 11:13:49 +0200 |
commit | 85d59ea2c8c8e64e55247b967d1469ad92e63e6b (patch) | |
tree | 8fde08736464fe0b97ef29e22a419eca417ec9ad /src/pipewire.c | |
parent | 7ebaf95645a195bfd7cae206e1cd350cddb94bde (diff) |
HACK: portal: copy external image to internal image before render. Dont stop screencast when paused as that stops recording when window is resized
Diffstat (limited to 'src/pipewire.c')
-rw-r--r-- | src/pipewire.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/pipewire.c b/src/pipewire.c index 03e59f4..5c38392 100644 --- a/src/pipewire.c +++ b/src/pipewire.c @@ -254,13 +254,6 @@ static void on_param_changed_cb(void *user_data, uint32_t id, const struct spa_p static void on_state_changed_cb(void *user_data, enum pw_stream_state old, enum pw_stream_state state, const char *error) { (void)old; gsr_pipewire *self = user_data; - if(state == PW_STREAM_STATE_STREAMING) - self->started = true; - - if(self->started && state == PW_STREAM_STATE_PAUSED) { - self->started = false; - self->stopped = true; - } fprintf(stderr, "gsr info: pipewire: stream %p state: \"%s\" (error: %s)\n", (void*)self->stream, pw_stream_state_as_string(state), @@ -740,7 +733,3 @@ bool gsr_pipewire_map_texture(gsr_pipewire *self, gsr_texture_map texture_map, g pthread_mutex_unlock(&self->mutex); return true; } - -bool gsr_pipewire_recording_stopped(gsr_pipewire *self) { - return self->stopped; -} |