summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/smi_video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/smi_video.c b/src/smi_video.c
index c2e8868..57587ac 100644
--- a/src/smi_video.c
+++ b/src/smi_video.c
@@ -1060,7 +1060,7 @@ SMI_PutVideo(
if(!xf86_crtc_clip_video_helper(pScrn, &crtc, crtcConf->crtc[0], &dstBox, &x1, &x2, &y1, &y2, clipBoxes, width, height))
LEAVE(Success);
- if(pSmi->Dualhead && crtc == crtcConf->crtc[1])
+ if (crtc != crtcConf->crtc[0])
LEAVE(Success);
/* Transform dstBox to the CRTC coordinates */
@@ -1521,6 +1521,9 @@ SMI_PutImage(
width, height))
LEAVE(Success);
+ if (!crtc)
+ LEAVE(Success);
+
/* Transform dstBox to the CRTC coordinates */
dstBox.x1 -= crtc->x;
dstBox.y1 -= crtc->y;
@@ -2468,6 +2471,9 @@ SMI_DisplaySurface(
&x1, &x2, &y1, &y2, clipBoxes, surface->width, surface->height))
LEAVE(Success);
+ if (!crtc)
+ LEAVE(Success);
+
/* Transform dstBox to the CRTC coordinates */
dstBox.x1 -= crtc->x;
dstBox.y1 -= crtc->y;