Commit 9587e7c0 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

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

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 9adad8ff
......@@ -247,6 +247,7 @@ struct encoder_t
* @return 0 if the video output was set up successfully, -1 otherwise.
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 ( 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. */
static inline int decoder_UpdateAudioFormat( decoder_t *dec )
assert(dec->fmt_in.i_cat == AUDIO_ES);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment