summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xine-utils/xine_check.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xine-utils/xine_check.c b/src/xine-utils/xine_check.c
index 22dde24f0..b87f2f0f0 100644
--- a/src/xine-utils/xine_check.c
+++ b/src/xine-utils/xine_check.c
@@ -463,6 +463,15 @@ xine_health_check_t* xine_health_check_xv (xine_health_check_t* hc) {
return hc;
}
+ if (!adaptor_info) {
+ set_hc_result (hc, XINE_HEALTH_CHECK_FAIL, "video_out_xv: No adaptors found.\n");
+ dlclose(x11_handle);
+#ifndef HAVE_XV_STATIC
+ dlclose(xv_handle);
+#endif
+ return hc;
+ }
+
img_formats = xvlistimageformats (dpy, adaptor_info->base_id, &formats);
for(i = 0; i < formats; i++) {