<html><head></head><body><div class="gmail_quote">Le 7 juillet 2017 13:56:12 GMT+03:00, Steve Lhomme <robux4@videolabs.io> 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 /> include/vlc_codec.h | 2 ++<br /> 1 file changed, 2 insertions(+)<br /><br />diff --git a/include/vlc_codec.h b/include/vlc_codec.h<br />index 197486bc34..c62ccd0e94 100644<br />--- a/include/vlc_codec.h<br />+++ b/include/vlc_codec.h<br />@@ -247,6 +247,7 @@ struct encoder_t<br />  *<br />  * @return 0 if the video output was set up successfully, -1 otherwise.<br />  */<br />+VLC_USED<br /> static inline int decoder_UpdateVideoFormat( decoder_t *dec )<br /> {<br />     assert( dec->fmt_in.i_cat == VIDEO_ES );<br />@@ -364,6 +365,7 @@ static inline int decoder_QueueSub( decoder_t *dec, subpicture_t *p_spu )<br />  * format (fmt_<a href="http://out.audio">out.audio</a>). If there is currently no audio output or if the<br />  * audio output format has changed, a new audio output will be set up.<br />  * @return 0 if the audio output is working, -1 if not. */<br />+VLC_USED<br /> static inline int decoder_UpdateAudioFormat( decoder_t *dec )<br /> {<br />     assert(dec->fmt_in.i_cat == AUDIO_ES);</pre></blockquote></div><br clear="all">I am not sure that is correct. At least historically, it was not needed as either buffer allocation would fail safe, or buffer would be discarded upon queuing.<br>
-- <br>
Rémi Denis-Courmont<br>
Typed on an inconvenient virtual keyboard</body></html>