From 19e5ec79232f683b12a0dd99cbbc1bdd325afb86 Mon Sep 17 00:00:00 2001 From: Francois Cartegnie <fcvlcdev@free.fr> Date: Wed, 24 Aug 2022 13:23:01 +0200 Subject: [PATCH] demux: ogg: fix error code check --- modules/demux/ogg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c index f3d05c024227..a2e2bd22de17 100644 --- a/modules/demux/ogg.c +++ b/modules/demux/ogg.c @@ -725,7 +725,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) return VLC_EGENERIC; } vlc_stream_Control( p_demux->s, STREAM_CAN_FASTSEEK, &b ); - if ( Oggseek_BlindSeektoAbsoluteTime( p_demux, p_stream, VLC_TICK_0 + i64, b ) ) + if ( Oggseek_BlindSeektoAbsoluteTime( p_demux, p_stream, VLC_TICK_0 + i64, b ) != -1 ) { Ogg_PreparePostSeek( p_sys ); if( acc ) @@ -873,7 +873,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args ) } vlc_stream_Control( p_demux->s, STREAM_CAN_FASTSEEK, &b ); - if ( Oggseek_BlindSeektoAbsoluteTime( p_demux, p_stream, VLC_TICK_0 + i64, b ) ) + if ( Oggseek_BlindSeektoAbsoluteTime( p_demux, p_stream, VLC_TICK_0 + i64, b ) != -1 ) { Ogg_PreparePostSeek( p_sys ); es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, -- GitLab