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
d6c4a284
Commit
d6c4a284
authored
Apr 15, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec/avcodec/vaapi: fixup vlc_va_Initialize()/vlc_va_Terminate
parent
81d41ccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/codec/avcodec/va.c
modules/codec/avcodec/va.c
+5
-5
No files found.
modules/codec/avcodec/va.c
View file @
d6c4a284
...
...
@@ -51,8 +51,8 @@
/* Global VAAPI connection state */
#ifdef VA_SHARED_CONN
static
vlc_va_conn_t
vlc_va_conn
=
{
NULL
,
0
,
0
,
0
,
0
};
static
bool
b_va_inited
=
false
;
#endif
/* */
static
vlc_va_conn_t
*
vlc_va_get_conn
(
void
)
{
...
...
@@ -69,8 +69,11 @@ vlc_va_conn_t *vlc_va_Initialize( const char *display_name )
vlc_va_conn_t
*
conn
=
vlc_va_get_conn
();
assert
(
conn
);
#ifdef VA_SHARED_CONN
if
(
b_va_inited
)
if
(
conn
->
i_ref_count
>
0
)
{
conn
->
i_ref_count
++
;
return
conn
;
}
#endif
/* Create a VA display */
conn
->
p_display_x11
=
XOpenDisplay
(
display_name
);
...
...
@@ -85,7 +88,6 @@ vlc_va_conn_t *vlc_va_Initialize( const char *display_name )
goto
error
;
#ifdef VA_SHARED_CONN
conn
->
i_ref_count
++
;
b_va_inited
=
true
;
#endif
return
conn
;
...
...
@@ -114,8 +116,6 @@ void vlc_va_Terminate( vlc_va_conn_t *conn )
conn
->
i_version_major
=
conn
->
i_version_minor
=
0
;
conn
->
i_ref_count
=
0
;
conn
=
NULL
;
/* */
b_va_inited
=
false
;
#endif
}
...
...
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