Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
106208c9
Commit
106208c9
authored
Nov 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Called vlc_va_Setup as soon as possible (avcodec).
parent
c4ef9658
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+17
-3
No files found.
modules/codec/avcodec/video.c
View file @
106208c9
...
...
@@ -1146,13 +1146,27 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_codec,
continue
;
}
if
(
p_sys
->
p_va
&&
p_sys
->
p_context
->
width
>
0
&&
p_sys
->
p_context
->
height
>
0
)
{
/* We try to call vlc_va_Setup when possible to detect errors when
* possible (later is too late) */
if
(
vlc_va_Setup
(
p_sys
->
p_va
,
&
p_sys
->
p_context
->
hwaccel_context
,
&
p_dec
->
fmt_out
.
video
.
i_chroma
,
p_sys
->
p_context
->
width
,
p_sys
->
p_context
->
height
)
)
{
msg_Err
(
p_dec
,
"vlc_va_Setup failed"
);
vlc_va_Delete
(
p_sys
->
p_va
);
p_sys
->
p_va
=
NULL
;
}
}
if
(
p_sys
->
p_va
)
{
/* FIXME this will disabled direct rendering
* even if a new pixel format is renegociated
*
* FIXME Try to call vlc_va_Setup when possible
* to detect errors when possible (later is too late) */
*/
p_sys
->
b_direct_rendering
=
false
;
p_sys
->
p_context
->
draw_horiz_band
=
NULL
;
return
pi_fmt
[
i
];
...
...
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