mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
parent
98dee71759
commit
6cfeef1751
@ -2029,7 +2029,7 @@ static int prlsdkCheckVideoUnsupportedParams(virDomainDefPtr def)
|
||||
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",
|
||||
_("Parallels Cloud Server doesn't support "
|
||||
"setting video acceleration parameters."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user