aboutsummaryrefslogtreecommitdiff
path: root/src/capture/kms.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-07-19 22:08:04 +0200
committerdec05eba <dec05eba@protonmail.com>2024-07-19 22:08:04 +0200
commit637d306a243e83c797f4a818cb0342d9af564843 (patch)
tree723d6978da05606e1972baf1230d8e44a66392e1 /src/capture/kms.c
parent739fab83ba60087eb598a0fc8732c1bc7669b839 (diff)
Stop recording when pipewire target window is closed or when pressing close in the desktop environments record button
Diffstat (limited to 'src/capture/kms.c')
-rw-r--r--src/capture/kms.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/capture/kms.c b/src/capture/kms.c
index 3e66bdb..f522df3 100644
--- a/src/capture/kms.c
+++ b/src/capture/kms.c
@@ -25,9 +25,6 @@ typedef struct {
typedef struct {
gsr_capture_kms_params params;
-
- bool should_stop;
- bool stop_is_error;
gsr_kms_client kms_client;
gsr_kms_response kms_response;
@@ -477,13 +474,7 @@ static int gsr_capture_kms_capture(gsr_capture *cap, AVFrame *frame, gsr_color_c
}
static bool gsr_capture_kms_should_stop(gsr_capture *cap, bool *err) {
- gsr_capture_kms *cap_kms = cap->priv;
- if(cap_kms->should_stop) {
- if(err)
- *err = cap_kms->stop_is_error;
- return true;
- }
-
+ (void)cap;
if(err)
*err = false;
return false;