From 7ed90faa110ed6eb646f969bd6a3134c13ab4846 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 4 Aug 2003 02:30:44 +0000 Subject: segfault fix by Frantisek Dvorak CVS patchset: 5239 CVS date: 2003/08/04 02:30:44 --- src/xine-utils/xine_check.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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++) { -- cgit v1.2.3