From 46da55b1eafef7495204a6733193057853d6575a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 21 Jun 2024 23:01:00 +0200 Subject: fm content: make sure to capture frame on damage and then no damage after fps frame timeout --- include/capture/xcomposite.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/capture/xcomposite.h') diff --git a/include/capture/xcomposite.h b/include/capture/xcomposite.h index 83731fa..27b289a 100644 --- a/include/capture/xcomposite.h +++ b/include/capture/xcomposite.h @@ -50,7 +50,8 @@ void gsr_capture_xcomposite_init(gsr_capture_xcomposite *self, const gsr_capture int gsr_capture_xcomposite_start(gsr_capture_xcomposite *self, AVCodecContext *video_codec_context, AVFrame *frame); void gsr_capture_xcomposite_stop(gsr_capture_xcomposite *self); void gsr_capture_xcomposite_tick(gsr_capture_xcomposite *self, AVCodecContext *video_codec_context); -bool gsr_capture_xcomposite_consume_damage(gsr_capture_xcomposite *self); +bool gsr_capture_xcomposite_is_damaged(gsr_capture_xcomposite *self); +void gsr_capture_xcomposite_clear_damage(gsr_capture_xcomposite *self); bool gsr_capture_xcomposite_should_stop(gsr_capture_xcomposite *self, bool *err); int gsr_capture_xcomposite_capture(gsr_capture_xcomposite *self, AVFrame *frame); -- cgit v1.2.3