[vlc-devel] [PATCH] demux: ogg: seek to keyframes

Francois Cartegnie fcvlcdev at free.fr
Thu Oct 10 23:38:27 CEST 2013


static int Demux( demux_t * p_demux )
>              p_sys->i_pcr = p_stream->i_interpolated_pcr;
>      }
>
> -    if( p_sys->i_pcr >= 0 && ! b_skipping )
> -        es_out_Control( p_demux->out, ES_OUT_SET_PCR, VLC_TS_0 +
p_sys->i_pcr );
> +    if( p_sys->i_pcr < 0 ) return -1;


I noticed it too late, but that one must return 1, not -1.
(or introduces a regression)

Francois




More information about the vlc-devel mailing list