From 6a71ee79aabe6b611cae443a49786824a0322313 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 4 Apr 2014 18:02:14 +0100 Subject: [PATCH] xv: Drop unused XvdiVideoStopped(). Signed-off-by: Eric Anholt Reviewed-by: Keith Packard --- Xext/xvdix.h | 1 - Xext/xvmain.c | 24 ------------------------ 2 files changed, 25 deletions(-) diff --git a/Xext/xvdix.h b/Xext/xvdix.h index ddd8abbb5..b61659ce4 100644 --- a/Xext/xvdix.h +++ b/Xext/xvdix.h @@ -235,7 +235,6 @@ extern _X_EXPORT DevPrivateKey XvGetScreenKey(void); extern _X_EXPORT unsigned long XvGetRTPort(void); extern _X_EXPORT void XvFreeAdaptor(XvAdaptorPtr pAdaptor); extern _X_EXPORT int XvdiSendPortNotify(XvPortPtr, Atom, INT32); -extern _X_EXPORT int XvdiVideoStopped(XvPortPtr, int); extern _X_EXPORT int XvdiPutVideo(ClientPtr, DrawablePtr, XvPortPtr, GCPtr, INT16, INT16, CARD16, CARD16, diff --git a/Xext/xvmain.c b/Xext/xvmain.c index ea3771f9b..2046b9dfa 100644 --- a/Xext/xvmain.c +++ b/Xext/xvmain.c @@ -425,30 +425,6 @@ XvDestroyWindow(WindowPtr pWin) } -/* The XvdiVideoStopped procedure is a hook for the device dependent layer. - It provides a way for the dd layer to inform the di layer that video has - stopped in a port for reasons that the di layer had no control over; note - that it doesn't call back into the dd layer */ - -int -XvdiVideoStopped(XvPortPtr pPort, int reason) -{ - - /* IF PORT ISN'T ACTIVE THEN WE'RE DONE */ - - if (!pPort->pDraw) - return Success; - - XvdiSendVideoNotify(pPort, pPort->pDraw, reason); - - pPort->pDraw = NULL; - pPort->client = NULL; - pPort->time = currentTime; - - return Success; - -} - static int XvdiDestroyPort(void *pPort, XID id) {