f_hwtransfer: minor debug logging improvement

This commit is contained in:
wm4 2020-01-17 15:10:36 +01:00
parent 7ed6b5f44d
commit a500608845
1 changed files with 5 additions and 2 deletions

View File

@ -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] =