Commit 4183d515 authored by Ren Zhaohan's avatar Ren Zhaohan

Add local vaDisplayIsValid

parent 7ce4ebf0
......@@ -47,6 +47,12 @@
static VADisplayContextP pDisplayContexts = NULL;
static int vaDisplayIsValid (VADisplay dpy)
{
VADisplayContextP pDisplayContext = (VADisplayContextP)dpy;
return pDisplayContext && (pDisplayContext->vadpy_magic == VA_DISPLAY_MAGIC) && pDisplayContext->vaIsValid(pDisplayContext);
}
static int open_device (char *dev_name)
{
struct stat st;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment