Commit ec75aa29 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

mediacodec: move size initialization

parent a21ff607
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment