xv: Drop unused XvdiPreemptVideo().
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
e7dde86f23
commit
4a095902a3
|
@ -259,7 +259,6 @@ extern _X_EXPORT int XvdiSelectPortNotify(ClientPtr, XvPortPtr, BOOL);
|
||||||
extern _X_EXPORT int XvdiSetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32);
|
extern _X_EXPORT int XvdiSetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32);
|
||||||
extern _X_EXPORT int XvdiGetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32 *);
|
extern _X_EXPORT int XvdiGetPortAttribute(ClientPtr, XvPortPtr, Atom, INT32 *);
|
||||||
extern _X_EXPORT int XvdiStopVideo(ClientPtr, XvPortPtr, DrawablePtr);
|
extern _X_EXPORT int XvdiStopVideo(ClientPtr, XvPortPtr, DrawablePtr);
|
||||||
extern _X_EXPORT int XvdiPreemptVideo(ClientPtr, XvPortPtr, DrawablePtr);
|
|
||||||
extern _X_EXPORT int XvdiMatchPort(XvPortPtr, DrawablePtr);
|
extern _X_EXPORT int XvdiMatchPort(XvPortPtr, DrawablePtr);
|
||||||
extern _X_EXPORT int XvdiGrabPort(ClientPtr, XvPortPtr, Time, int *);
|
extern _X_EXPORT int XvdiGrabPort(ClientPtr, XvPortPtr, Time, int *);
|
||||||
extern _X_EXPORT int XvdiUngrabPort(ClientPtr, XvPortPtr, Time);
|
extern _X_EXPORT int XvdiUngrabPort(ClientPtr, XvPortPtr, Time);
|
||||||
|
|
|
@ -991,28 +991,6 @@ XvdiStopVideo(ClientPtr client, XvPortPtr pPort, DrawablePtr pDraw)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
XvdiPreemptVideo(ClientPtr client, XvPortPtr pPort, DrawablePtr pDraw)
|
|
||||||
{
|
|
||||||
int status;
|
|
||||||
|
|
||||||
/* IF PORT ISN'T ACTIVE THEN WE'RE DONE */
|
|
||||||
|
|
||||||
if (!pPort->pDraw || (pPort->pDraw != pDraw))
|
|
||||||
return Success;
|
|
||||||
|
|
||||||
XvdiSendVideoNotify(pPort, pPort->pDraw, XvPreempted);
|
|
||||||
|
|
||||||
status = (*pPort->pAdaptor->ddStopVideo) (client, pPort, pPort->pDraw);
|
|
||||||
|
|
||||||
pPort->pDraw = NULL;
|
|
||||||
pPort->client = (ClientPtr) client;
|
|
||||||
pPort->time = currentTime;
|
|
||||||
|
|
||||||
return status;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
XvdiMatchPort(XvPortPtr pPort, DrawablePtr pDraw)
|
XvdiMatchPort(XvPortPtr pPort, DrawablePtr pDraw)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user