Fix possible crash if Xv window is outside of either crtc

This commit is contained in:
Michel Dänzer 2007-09-22 14:25:02 -04:00 committed by Alex Deucher
parent edd8817083
commit 9235531410

View File

@ -2250,7 +2250,9 @@ xf86_crtc_clip_video_helper(ScrnInfoPtr pScrn,
REGION_INIT (pScreen, &crtc_region_local, &crtc_box, 1);
crtc_region = &crtc_region_local;
REGION_INTERSECT (pScreen, crtc_region, crtc_region, reg);
}
} else
return FALSE;
*crtc_ret = crtc;
}