提交 6cfeef17 编写于 作者: D Dmitry Guryanov 提交者: Michal Privoznik

parallels: support NULL virDomainVideoAccelDefPtr

NULL value of virDomainVideoAccelDefPtr means default
values for video acceleration, so don't report error in
this case.
Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
上级 98dee717
...@@ -2029,7 +2029,7 @@ static int prlsdkCheckVideoUnsupportedParams(virDomainDefPtr def) ...@@ -2029,7 +2029,7 @@ static int prlsdkCheckVideoUnsupportedParams(virDomainDefPtr def)
return -1; return -1;
} }
if (v->accel == NULL || v->accel->support2d || v->accel->support3d) { if (v->accel != NULL && (v->accel->support2d || v->accel->support3d)) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
_("Parallels Cloud Server doesn't support " _("Parallels Cloud Server doesn't support "
"setting video acceleration parameters.")); "setting video acceleration parameters."));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册