[vlc-commits] vlc_codec: make sure we check the return value of decoder_Update[Audio|Video]Format

Steve Lhomme git at videolan.org
Sat Jul 8 18:39:08 CEST 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Jul  6 15:42:09 2017 +0200| [9587e7c035c7579d80663fb11f4949f7752af086] | committer: Jean-Baptiste Kempf

vlc_codec: make sure we check the return value of decoder_Update[Audio|Video]Format

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 include/vlc_codec.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_codec.h b/include/vlc_codec.h
index 197486bc34..c62ccd0e94 100644
--- a/include/vlc_codec.h
+++ b/include/vlc_codec.h
@@ -247,6 +247,7 @@ struct encoder_t
  *
  * @return 0 if the video output was set up successfully, -1 otherwise.
  */
+VLC_USED
 static inline int decoder_UpdateVideoFormat( decoder_t *dec )
 {
     assert( dec->fmt_in.i_cat == VIDEO_ES );
@@ -364,6 +365,7 @@ static inline int decoder_QueueSub( decoder_t *dec, subpicture_t *p_spu )
  * format (fmt_out.audio). If there is currently no audio output or if the
  * audio output format has changed, a new audio output will be set up.
  * @return 0 if the audio output is working, -1 if not. */
+VLC_USED
 static inline int decoder_UpdateAudioFormat( decoder_t *dec )
 {
     assert(dec->fmt_in.i_cat == AUDIO_ES);



More information about the vlc-commits mailing list