[vlc-devel] [PATCH] audio_output: Correctly initialize audio filter es_format_t

Hugo Beauzée-Luyssen hugo at beauzee.fr
Wed Jul 12 15:53:23 CEST 2017


---
 src/audio_output/filters.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index 2e6ad1bc5a..b94b06547e 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -52,10 +52,10 @@ static filter_t *CreateFilter (vlc_object_t *obj, const char *type,
         return NULL;
 
     filter->owner.sys = owner;
+    es_format_Init(&filter->fmt_in, AUDIO_ES, infmt->i_format);
     filter->fmt_in.audio = *infmt;
-    filter->fmt_in.i_codec = infmt->i_format;
+    es_format_Init(&filter->fmt_out, AUDIO_ES, outfmt->i_format);
     filter->fmt_out.audio = *outfmt;
-    filter->fmt_out.i_codec = outfmt->i_format;
 
 #ifndef NDEBUG
     /* Assure that infmt/oufmt are well prepared and that channels
-- 
2.11.0



More information about the vlc-devel mailing list