summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'video.c')
-rw-r--r--video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video.c b/video.c
index 3781b5c..2d926cf 100644
--- a/video.c
+++ b/video.c
@@ -1451,6 +1451,7 @@ static void VideoVaapiInit(const char *display_name)
Error(_("video/vaapi: Can't connect VA-API to X11 server on '%s'"),
display_name);
// FIXME: no fatal for plugin
+ VideoVaapiEnabled = 0;
return;
}
@@ -1459,6 +1460,7 @@ static void VideoVaapiInit(const char *display_name)
display_name);
vaTerminate(VaDisplay);
VaDisplay = NULL;
+ VideoVaapiEnabled = 0;
return;
}
s = vaQueryVendorString(VaDisplay);