Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libva
Commits
b0cb52d5
Commit
b0cb52d5
authored
Feb 16, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git@moblin-mdi.jf.intel.com/umg-moorestown-libva
parents
ad7f7f2b
363989ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
5 deletions
+23
-5
src/X11/va_x11.c
src/X11/va_x11.c
+22
-0
src/va.c
src/va.c
+1
-5
No files found.
src/X11/va_x11.c
View file @
b0cb52d5
...
@@ -154,6 +154,28 @@ static VAStatus va_DisplayContextGetDriverName (
...
@@ -154,6 +154,28 @@ static VAStatus va_DisplayContextGetDriverName (
return
vaStatus
;
return
vaStatus
;
}
}
int
vaDisplayIsValid
(
VADisplay
dpy
)
{
VADisplayContextP
tmp
=
NULL
;
VADisplayContextP
pDisplayContext
=
pDisplayContexts
;
while
(
pDisplayContext
)
{
if
(
pDisplayContext
==
(
VADisplayContextP
)
dpy
)
{
tmp
=
(
VADisplay
)
pDisplayContext
;
break
;
}
pDisplayContext
=
pDisplayContext
->
pNext
;
}
if
(
!
tmp
)
return
0
;
return
tmp
->
vaIsValid
(
pDisplayContext
);
}
VADisplay
vaGetDisplay
(
VADisplay
vaGetDisplay
(
Display
*
native_dpy
Display
*
native_dpy
)
)
...
...
src/va.c
View file @
b0cb52d5
...
@@ -51,11 +51,7 @@
...
@@ -51,11 +51,7 @@
static
int
va_debug_trace
=
0
;
static
int
va_debug_trace
=
0
;
static
int
vaDisplayIsValid
(
VADisplay
dpy
)
int
vaDisplayIsValid
(
VADisplay
dpy
);
{
VADisplayContextP
pDisplayContext
=
(
VADisplayContextP
)
dpy
;
return
pDisplayContext
&&
pDisplayContext
->
vaIsValid
(
pDisplayContext
);
}
static
void
va_errorMessage
(
const
char
*
msg
,
...)
static
void
va_errorMessage
(
const
char
*
msg
,
...)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment