[vlc-devel] [PATCH 2/3] decoder: prepare format in decoder_UpdateAudioFormat
Thomas Guillem
thomas at gllm.fr
Thu Sep 22 10:20:44 CEST 2016
---
src/input/decoder.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index dee8003..16f439a 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -356,12 +356,10 @@ static int aout_update_format( decoder_t *p_dec )
msg_Err( p_dec, "failed to create audio output" );
return -1;
}
-
- p_dec->fmt_out.audio.i_bytes_per_frame =
- p_owner->fmt.audio.i_bytes_per_frame;
- p_dec->fmt_out.audio.i_frame_length =
- p_owner->fmt.audio.i_frame_length;
}
+
+ aout_FormatPrepare( &p_dec->fmt_out.audio );
+
return 0;
}
--
2.9.3
More information about the vlc-devel
mailing list