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
d19f27a9
Commit
d19f27a9
authored
Mar 22, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi: use driver name (rather than VA-API ABI version) as description
parent
4db3b62d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+1
-6
No files found.
modules/codec/avcodec/vaapi.c
View file @
d19f27a9
...
@@ -150,7 +150,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
...
@@ -150,7 +150,6 @@ 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_config_id
=
VA_INVALID_ID
;
sys
->
i_context_id
=
VA_INVALID_ID
;
sys
->
i_context_id
=
VA_INVALID_ID
;
sys
->
image
.
image_id
=
VA_INVALID_ID
;
sys
->
image
.
image_id
=
VA_INVALID_ID
;
...
@@ -190,9 +189,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
...
@@ -190,9 +189,6 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
goto
error
;
goto
error
;
}
}
if
(
asprintf
(
&
va
->
description
,
"VA API v%d.%d"
,
major
,
minor
)
<
0
)
va
->
description
=
NULL
;
/* Check if the selected profile is supported */
/* Check if the selected profile is supported */
i_profiles_nb
=
vaMaxNumProfiles
(
sys
->
p_display
);
i_profiles_nb
=
vaMaxNumProfiles
(
sys
->
p_display
);
p_profiles_list
=
calloc
(
i_profiles_nb
,
sizeof
(
VAProfile
)
);
p_profiles_list
=
calloc
(
i_profiles_nb
,
sizeof
(
VAProfile
)
);
...
@@ -243,10 +239,10 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
...
@@ -243,10 +239,10 @@ static int Open( vlc_va_t *va, int i_codec_id, int i_thread_count )
vlc_mutex_init
(
&
sys
->
lock
);
vlc_mutex_init
(
&
sys
->
lock
);
va
->
sys
=
sys
;
va
->
sys
=
sys
;
va
->
description
=
(
char
*
)
vaQueryVendorString
(
sys
->
p_display
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
error:
error:
free
(
va
->
description
);
if
(
sys
->
p_display
!=
NULL
)
if
(
sys
->
p_display
!=
NULL
)
vaTerminate
(
sys
->
p_display
);
vaTerminate
(
sys
->
p_display
);
#ifdef VLC_VA_BACKEND_XLIB
#ifdef VLC_VA_BACKEND_XLIB
...
@@ -579,7 +575,6 @@ static void Delete( vlc_va_t *va )
...
@@ -579,7 +575,6 @@ static void Delete( vlc_va_t *va )
{
{
vlc_va_sys_t
*
sys
=
va
->
sys
;
vlc_va_sys_t
*
sys
=
va
->
sys
;
Close
(
sys
);
Close
(
sys
);
free
(
va
->
description
);
free
(
sys
);
free
(
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