diff options
author | Eric Anholt <eric@anholt.net> | 2014-04-04 18:02:14 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-08-06 20:12:20 -0700 |
commit | 6a71ee79aabe6b611cae443a49786824a0322313 (patch) | |
tree | 4de7b912d3367b4d4963cc54f85424fc22ec2027 /Xext | |
parent | 4a095902a37cb98d7954d0873dcf1376cbab54b8 (diff) |
xv: Drop unused XvdiVideoStopped().
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/xvdix.h | 1 | ||||
-rw-r--r-- | Xext/xvmain.c | 24 |
2 files changed, 0 insertions, 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) { |