vmware/xorg: Also stop ports on close
authorJakob Bornecrantz <jakob@vmware.com>
Fri, 4 Dec 2009 15:44:18 +0000 (16:44 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Fri, 4 Dec 2009 15:50:26 +0000 (16:50 +0100)
src/gallium/winsys/drm/vmware/xorg/vmw_video.c

index ef1e2f1e731e6f452803187430e1248a6dca259f..b99bb2f7e345026ffbcbbc922a93e23d7fbd4c0a 100644 (file)
@@ -346,7 +346,8 @@ vmw_video_close(ScrnInfoPtr pScrn, struct vmw_driver *vmw)
        return TRUE;
 
     for (i = 0; i < VMWARE_VID_NUM_PORTS; ++i) {
-        vmw_video_port_cleanup(pScrn, &video->port[i]);
+       /* make sure the port is stoped as well */
+       vmw_xv_stop_video(pScrn, &video->port[i], TRUE);
     }
 
     /* XXX: I'm sure this function is missing code for turning off Xv */