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
0b6ff97b
Commit
0b6ff97b
authored
Oct 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: move xlib check to vaapi.c
vlc_xlib_init() already checks for --no-xlib internally.
parent
88846171
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
modules/codec/avcodec/vaapi.c
modules/codec/avcodec/vaapi.c
+3
-0
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+3
-9
No files found.
modules/codec/avcodec/vaapi.c
View file @
0b6ff97b
...
...
@@ -509,7 +509,10 @@ static void Delete( vlc_va_t *p_external )
vlc_va_t
*
vlc_va_NewVaapi
(
vlc_object_t
*
obj
,
int
i_codec_id
)
{
if
(
!
vlc_xlib_init
(
obj
)
)
{
msg_Warn
(
obj
,
"Ignoring VA API"
);
return
NULL
;
}
vlc_va_vaapi_t
*
p_va
=
calloc
(
1
,
sizeof
(
*
p_va
)
);
if
(
!
p_va
)
...
...
modules/codec/avcodec/video.c
View file @
0b6ff97b
...
...
@@ -1161,23 +1161,17 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
msg_Dbg
(
p_dec
,
"Available decoder output format %d (%s)"
,
pi_fmt
[
i
],
name
?
name
:
"unknown"
);
#ifdef HAVE_AVCODEC_VAAPI
/* Only VLD supported */
if
(
pi_fmt
[
i
]
==
PIX_FMT_VAAPI_VLD
)
{
if
(
!
var_InheritBool
(
p_dec
,
"xlib"
)
)
{
msg_Warn
(
p_dec
,
"Ignoring VA API"
);
continue
;
}
#ifdef HAVE_AVCODEC_VAAPI
msg_Dbg
(
p_dec
,
"Trying VA API"
);
p_sys
->
p_va
=
vlc_va_NewVaapi
(
VLC_OBJECT
(
p_dec
),
p_sys
->
i_codec_id
);
if
(
!
p_sys
->
p_va
)
msg_Warn
(
p_dec
,
"Failed to open VA API"
);
#else
continue
;
#endif
}
#endif
#ifdef HAVE_AVCODEC_DXVA2
if
(
pi_fmt
[
i
]
==
PIX_FMT_DXVA2_VLD
)
{
...
...
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