Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
833f43cf
Commit
833f43cf
authored
Mar 22, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi: do not retain version numbers
parent
e59154b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+8
-9
No files found.
modules/codec/avcodec/vaapi.c
View file @
833f43cf
...
...
@@ -75,10 +75,6 @@ struct vlc_va_sys_t
struct
vaapi_context
hw_ctx
;
/* */
int
i_version_major
;
int
i_version_minor
;
/* */
vlc_mutex_t
lock
;
int
i_surface_count
;
...
...
@@ -136,6 +132,7 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
}
/* */
va
->
description
=
NULL
;
sys
->
i_config_id
=
VA_INVALID_ID
;
sys
->
i_context_id
=
VA_INVALID_ID
;
sys
->
image
.
image_id
=
VA_INVALID_ID
;
...
...
@@ -155,12 +152,17 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
goto
error
;
}
if
(
vaInitialize
(
sys
->
p_display
,
&
sys
->
i_version_major
,
&
sys
->
i_version_minor
)
)
int
major
,
minor
;
if
(
vaInitialize
(
sys
->
p_display
,
&
major
,
&
minor
)
)
{
msg_Err
(
va
,
"Failed to initialize the VAAPI device"
);
goto
error
;
}
if
(
asprintf
(
&
va
->
description
,
"VA API v%d.%d"
,
major
,
minor
)
<
0
)
va
->
description
=
NULL
;
/* Check if the selected profile is supported */
i_profiles_nb
=
vaMaxNumProfiles
(
sys
->
p_display
);
p_profiles_list
=
calloc
(
i_profiles_nb
,
sizeof
(
VAProfile
)
);
...
...
@@ -210,14 +212,11 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
vlc_mutex_init
(
&
sys
->
lock
);
if
(
asprintf
(
&
va
->
description
,
"VA API version %d.%d"
,
sys
->
i_version_major
,
sys
->
i_version_minor
)
<
0
)
va
->
description
=
NULL
;
va
->
sys
=
sys
;
return
VLC_SUCCESS
;
error:
free
(
va
->
description
);
if
(
sys
->
p_display
!=
NULL
)
vaTerminate
(
sys
->
p_display
);
if
(
sys
->
p_display_x11
!=
NULL
)
...
...
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