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 /src/capture/kms.c | |
parent | 739fab83ba60087eb598a0fc8732c1bc7669b839 (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.c | 11 |
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; |