aboutsummaryrefslogtreecommitdiff
path: root/src/capture/capture.c
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-14 01:15:01 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-14 01:15:01 +0200
commit8acb34638212ab8dba0d48a57dd40721203a7a44 (patch)
tree7f1942c56fa2700f2f5fe2d623e9e1c94fb23324 /src/capture/capture.c
parent992792fb1f35546b9d66c3f69aa3d0f5adb94ef6 (diff)
Set update fps to video fps, on x11 sync video to damage tracking
Diffstat (limited to 'src/capture/capture.c')
-rw-r--r--src/capture/capture.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/capture/capture.c b/src/capture/capture.c
index 7c5737d..5fc96d0 100644
--- a/src/capture/capture.c
+++ b/src/capture/capture.c
@@ -16,6 +16,11 @@ void gsr_capture_tick(gsr_capture *cap, AVCodecContext *video_codec_context) {
cap->tick(cap, video_codec_context);
}
+void gsr_capture_on_event(gsr_capture *cap, gsr_egl *egl) {
+ if(cap->on_event)
+ cap->on_event(cap, egl);
+}
+
bool gsr_capture_should_stop(gsr_capture *cap, bool *err) {
assert(cap->started);
if(cap->should_stop)