From 982676c07d9f19f4ecd19ac7c277ba9caff5439b Mon Sep 17 00:00:00 2001 From: Boram Park Date: Fri, 12 Sep 2014 13:45:20 +0900 Subject: [PATCH] correct wrong usage of _secVideoPunchDrawable. _secVideoPunchDrawable() is only for testing. Don't use this function for real case. You can enable _secVideoPunchDrawable by running "xberc video_punch 1". If video can't be displayed caused by UI, applications should fix their UI code. not xv code. Change-Id: I71c5c1e666427d07066918877c7d5c35bca7b412 --- src/xv/sec_video.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/xv/sec_video.c b/src/xv/sec_video.c index 884872d..71d68e5 100644 --- a/src/xv/sec_video.c +++ b/src/xv/sec_video.c @@ -1529,29 +1529,21 @@ _secVideoPunchDrawable (SECPortPrivPtr pPort) PixmapPtr pPixmap = _getPixmap (pPort->d.pDraw); SECPtr pSec = SECPTR (pPort->pScrn); - if (pPort->drawing != ON_FB) - { - XDBG_DEBUG (MVDO, "pPort->drawing (%d), pSec->pVideoPriv->video_punch (%d)\n", - pPort->drawing, pSec->pVideoPriv->video_punch); + if (pPort->drawing != ON_FB || !pSec->pVideoPriv->video_punch) return; - } if (!pPort->punched) { - DamageRegionAppend(pPort->d.pDraw, pPort->d.clip_boxes); secExaPrepareAccess (pPixmap, EXA_PREPARE_DEST); if (pPixmap->devPrivate.ptr) memset (pPixmap->devPrivate.ptr, 0, pPixmap->drawable.width * pPixmap->drawable.height * 4); secExaFinishAccess (pPixmap, EXA_PREPARE_DEST); - DamageRegionProcessPending(pPort->d.pDraw); XDBG_TRACE (MVDO, "Punched (%dx%d) %p. \n", pPixmap->drawable.width, pPixmap->drawable.height, pPixmap->devPrivate.ptr); pPort->punched = TRUE; -#if 0 DamageDamageRegion (pPort->d.pDraw, pPort->d.clip_boxes); -#endif } } -- 2.7.4