Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
ab1b18d4
Commit
ab1b18d4
authored
Apr 04, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec/avcodec/vaapi{_x11}.c: call vlc_va_Initialize/vlc_va_Terminate
Use vlc_va_* wrapper to call vaInitialize and vaTerminate
parent
afeaabef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+2
-4
modules/codec/avcodec/vaapi_x11.c
modules/codec/avcodec/vaapi_x11.c
+1
-2
No files found.
modules/codec/avcodec/vaapi.c
View file @
ab1b18d4
...
...
@@ -445,11 +445,9 @@ static void Close( vlc_va_vaapi_t *p_va )
if
(
p_va
->
i_config_id
!=
VA_INVALID_ID
)
vaDestroyConfig
(
p_va
->
conn
->
p_display
,
p_va
->
i_config_id
);
if
(
p_va
->
conn
->
p_display
)
vaTerminate
(
p_va
->
conn
->
p_display
);
if
(
p_va
->
conn
->
p_display_x11
)
XCloseDisplay
(
p_va
->
conn
->
p_display_x11
);
vlc_va_Terminate
(
p_va
->
conn
);
}
static
void
Delete
(
vlc_va_t
*
p_external
)
{
vlc_va_vaapi_t
*
p_va
=
vlc_va_vaapi_Get
(
p_external
);
...
...
modules/codec/avcodec/vaapi_x11.c
View file @
ab1b18d4
...
...
@@ -257,11 +257,10 @@ void CloseVaapiX11 (vlc_object_t *obj)
{
XFlush
(
sys
->
conn
->
p_display_x11
);
XSync
(
sys
->
conn
->
p_display_x11
,
False
);
XCloseDisplay
(
sys
->
conn
->
p_display_x11
);
sys
->
conn
->
p_display_x11
=
NULL
;
}
if
(
sys
->
embed
)
vout_display_DeleteWindow
(
vd
,
sys
->
embed
);
vlc_va_Terminate
(
sys
->
conn
);
free
(
vd
->
sys
);
}
...
...
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