diff options
Diffstat (limited to 'src/capture/xcomposite_vaapi.c')
-rw-r--r-- | src/capture/xcomposite_vaapi.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/capture/xcomposite_vaapi.c b/src/capture/xcomposite_vaapi.c index ab4154c..5a39820 100644 --- a/src/capture/xcomposite_vaapi.c +++ b/src/capture/xcomposite_vaapi.c @@ -16,6 +16,7 @@ typedef struct { gsr_capture_xcomposite_vaapi_params params; Display *dpy; XEvent xev; + bool should_stop; bool stop_is_error; bool window_resized; @@ -611,11 +612,6 @@ static void gsr_capture_xcomposite_vaapi_destroy(gsr_capture *cap, AVCodecContex free(cap->priv); cap->priv = NULL; } - if(cap_xcomp->dpy) { - // TODO: This causes a crash, why? maybe some other library dlclose xlib and that also happened to unload this??? - //XCloseDisplay(cap_xcomp->dpy); - cap_xcomp->dpy = NULL; - } free(cap); } |