diff --git a/src/bhyve/bhyve_domain.c b/src/bhyve/bhyve_domain.c index 40ee461b19..95d6ffd31c 100644 --- a/src/bhyve/bhyve_domain.c +++ b/src/bhyve/bhyve_domain.c @@ -162,8 +162,8 @@ bhyveDomainDeviceDefPostParse(virDomainDeviceDefPtr dev, } if (dev->type == VIR_DOMAIN_DEVICE_VIDEO && - dev->data.video.type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) { - dev->data.video.type = VIR_DOMAIN_VIDEO_TYPE_GOP; + dev->data.video->type == VIR_DOMAIN_VIDEO_TYPE_DEFAULT) { + dev->data.video->type = VIR_DOMAIN_VIDEO_TYPE_GOP; } return 0;