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
2239e768
Commit
2239e768
authored
Dec 06, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vaapi: fix profile detection
fixup:
a47b657e
parent
a47b657e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+8
-8
No files found.
modules/codec/avcodec/vaapi.c
View file @
2239e768
...
...
@@ -86,9 +86,7 @@ static vlc_va_vaapi_t *vlc_va_vaapi_Get( void *p_va )
/* */
static
int
Open
(
vlc_va_vaapi_t
*
p_va
,
int
i_codec_id
,
int
i_count
)
{
VAProfile
i_profile
,
*
p_profiles_list
;
bool
b_supported_profile
=
false
;
int
i_profiles_nb
=
0
;
VAProfile
i_profile
;
int
i_surface_count
;
/* NOTE: The number of surfaces requested is calculated
...
...
@@ -147,15 +145,17 @@ static int Open( vlc_va_vaapi_t *p_va, int i_codec_id, int i_count )
p_va
->
conn
->
lock
();
/* Check if the selected profile is supported */
i_profiles_nb
=
vaMaxNumEntrypoints
(
p_va
->
display
);
p_profiles_list
=
malloc
(
i_profiles_nb
*
sizeof
(
VAProfile
)
);
bool
b_supported_profile
=
false
;
int
i_profiles_nb
=
vaMaxNumProfiles
(
p_va
->
conn
->
p_display
);
VAProfile
*
p_profiles_list
=
calloc
(
i_profiles_nb
,
sizeof
(
VAProfile
)
);
if
(
!
p_profiles_list
)
goto
error
;
if
(
vaQueryConfigProfiles
(
p_va
->
display
,
p_profiles_list
,
&
i_profiles_nb
)
==
VA_STATUS_SUCCESS
)
VAStatus
status
=
vaQueryConfigProfiles
(
p_va
->
conn
->
p_display
,
p_profiles_list
,
&
i_profiles_nb
);
if
(
status
==
VA_STATUS_SUCCESS
)
{
while
(
--
i_profiles_nb
>=
0
)
for
(
int
i
=
0
;
i
<
i_profiles_nb
;
i
++
)
{
if
(
p_profiles_list
[
i
_profiles_nb
]
==
i_profile
)
if
(
p_profiles_list
[
i
]
==
i_profile
)
{
b_supported_profile
=
true
;
break
;
...
...
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