summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-17 15:10:36 +0100
committerwm4 <wm4@nowhere>2020-01-17 15:10:36 +0100
commita50060884547ae63198dd427fc5f1a2d3766013c (patch)
tree403c56a6c442945469190620cd14c06c1aaf4d0d
parent7ed6b5f44d755bffce76fc9cc2196364484609bd (diff)
downloadmpv-a50060884547ae63198dd427fc5f1a2d3766013c.tar.bz2
mpv-a50060884547ae63198dd427fc5f1a2d3766013c.tar.xz
f_hwtransfer: minor debug logging improvement
-rw-r--r--filters/f_hwtransfer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/filters/f_hwtransfer.c b/filters/f_hwtransfer.c
index 677e62826e..93e60f2eb8 100644
--- a/filters/f_hwtransfer.c
+++ b/filters/f_hwtransfer.c
@@ -322,8 +322,11 @@ static bool probe_formats(struct mp_hwupload *u, int hw_imgfmt)
MP_VERBOSE(u->f, " ... skipping blacklisted format\n");
continue;
}
- if (vo_supports(ctx, hw_imgfmt, fmt))
- MP_TARRAY_APPEND(p, p->upload_fmts, p->num_upload_fmts, fmt);
+ if (!vo_supports(ctx, hw_imgfmt, fmt)) {
+ MP_VERBOSE(u->f, " ... not supported by VO\n");
+ continue;
+ }
+ MP_TARRAY_APPEND(p, p->upload_fmts, p->num_upload_fmts, fmt);
}
p->fmt_upload_num[index] =