<html><head></head><body><div class="gmail_quote">Le 12 juillet 2017 21:53:23 GMT+08:00, "Hugo Beauzée-Luyssen" <hugo@beauzee.fr> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">---<br /> src/audio_output/filters.c | 4 ++--<br /> 1 file changed, 2 insertions(+), 2 deletions(-)<br /><br />diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c<br />index 2e6ad1bc5a..b94b06547e 100644<br />--- a/src/audio_output/filters.c<br />+++ b/src/audio_output/filters.c<br />@@ -52,10 +52,10 @@ static filter_t *CreateFilter (vlc_object_t *obj, const char *type,<br />         return NULL;<br /> <br />     filter->owner.sys = owner;<br />+    es_format_Init(&filter->fmt_in, AUDIO_ES, infmt->i_format);<br />     filter->fmt_<a href="http://in.audio">in.audio</a> = *infmt;<br />-    filter->fmt_in.i_codec = infmt->i_format;<br />+    es_format_Init(&filter->fmt_out, AUDIO_ES, outfmt->i_format);<br />     filter->fmt_<a href="http://out.audio">out.audio</a> = *outfmt;<br />-    filter->fmt_out.i_codec = outfmt->i_format;<br /> <br /> #ifndef NDEBUG<br />     /* Assure that infmt/oufmt are well prepared and that channels</pre></blockquote></div><br clear="all">In principles, an audio filter only looks at the audio union member, hence the current code.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>