Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
ec75aa29
Commit
ec75aa29
authored
Mar 30, 2017
by
Thomas Guillem
Browse files
mediacodec: move size initialization
parent
a21ff607
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/omxil/mediacodec.c
View file @
ec75aa29
...
...
@@ -650,6 +650,8 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
p_dec
->
fmt_out
.
i_cat
=
p_dec
->
fmt_in
.
i_cat
;
p_dec
->
fmt_out
.
video
=
p_dec
->
fmt_in
.
video
;
p_dec
->
fmt_out
.
audio
=
p_dec
->
fmt_in
.
audio
;
p_dec
->
fmt_out
.
video
.
i_visible_width
=
p_dec
->
fmt_out
.
video
.
i_width
;
p_dec
->
fmt_out
.
video
.
i_visible_height
=
p_dec
->
fmt_out
.
video
.
i_height
;
vlc_mutex_init
(
&
p_sys
->
lock
);
vlc_cond_init
(
&
p_sys
->
cond
);
...
...
@@ -681,8 +683,7 @@ static int OpenDecoder(vlc_object_t *p_this, pf_MediaCodecApi_init pf_init)
/* Direct rendering: Request a valid OPAQUE Vout in order to get
* the surface attached to it */
p_dec
->
fmt_out
.
i_codec
=
VLC_CODEC_ANDROID_OPAQUE
;
p_dec
->
fmt_out
.
video
.
i_visible_width
=
p_dec
->
fmt_out
.
video
.
i_width
;
p_dec
->
fmt_out
.
video
.
i_visible_height
=
p_dec
->
fmt_out
.
video
.
i_height
;
if
(
UpdateOpaqueVout
(
p_dec
)
!=
VLC_SUCCESS
)
{
msg_Err
(
p_dec
,
"Opaque Vout request failed"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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