From 991af7dfb10c514a10d84f5a3e2698e646eb53d4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Jun 2015 22:26:57 +0200 Subject: video: reduce error message when loading hwdec backend fails When using --hwdec=auto, about half of all systems will print: "[vdpau] Error when calling vdp_device_create_x11: 1" this happens because usually mpv will be linked against both vdpau and vaapi libs, but the drivers are not necessarily available. Then trying to load a driver will fail. This is a normal part of probing, but the error messages were printed anyway. Silence them by explicitly distinguishing probing. This pretty much goes through all the layers. We actually consider loading hw backends for vo_opengl always "auto probed", even if a hw backend is explicitly requested. In this case vd_lavc will print a warning message anyway (adjust this message a bit). --- video/out/vo_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/vo_vaapi.c') diff --git a/video/out/vo_vaapi.c b/video/out/vo_vaapi.c index b34acb1052..69097021fd 100644 --- a/video/out/vo_vaapi.c +++ b/video/out/vo_vaapi.c @@ -600,7 +600,7 @@ static int preinit(struct vo *vo) if (!p->display) goto fail; - p->mpvaapi = va_initialize(p->display, p->log); + p->mpvaapi = va_initialize(p->display, p->log, false); if (!p->mpvaapi) { vaTerminate(p->display); p->display = NULL; -- cgit v1.2.3