[vlc-commits] spdif: don't reset fmt_out on error

Thomas Guillem git at videolan.org
Mon Jul 10 19:15:07 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 10 19:14:20 2017 +0200| [a225b7cfcd849396b014995467cf0cba30ce3f45] | committer: Thomas Guillem

spdif: don't reset fmt_out on error

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a225b7cfcd849396b014995467cf0cba30ce3f45
---

 modules/codec/spdif.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/codec/spdif.c b/modules/codec/spdif.c
index efd8cb6576..f1ebcbdfe6 100644
--- a/modules/codec/spdif.c
+++ b/modules/codec/spdif.c
@@ -78,10 +78,7 @@ OpenDecoder(vlc_object_t *p_this)
     p_dec->fmt_out.audio.i_format = p_dec->fmt_out.i_codec;
 
     if (decoder_UpdateAudioFormat(p_dec))
-    {
-        es_format_Init(&p_dec->fmt_out, UNKNOWN_ES, 0);
         return VLC_EGENERIC;
-    }
 
     p_dec->pf_decode = DecodeBlock;
     p_dec->pf_flush  = NULL;



More information about the vlc-commits mailing list