[vlc-devel] [PATCH] demux: ogg: use PCR for DEMUX_GET_POSITION
Denis Charmet
typx at dinauz.org
Fri Sep 20 09:15:28 CEST 2013
Hi,
Le jeudi 19 septembre 2013 à 10:49:03, Francois Cartegnie a écrit :
> + case DEMUX_GET_POSITION:
> + pf = (double*)va_arg( args, double * );
> + if( p_sys->i_length > 0 )
> + {
> + *pf = (double) p_sys->i_pcr /
> + (double) ( p_sys->i_length * (mtime_t)1000000 );
> + }
> + else if( stream_Size( p_demux->s ) > 0 )
> + {
> + double i64 = (uint64_t)stream_Tell( p_demux->s );
> + return i64 / stream_Size( p_demux->s );
you mean:
*pf = i64 / stream_Size( p_demux->s );
> + }
> + else *pf = 0.0;
> + return VLC_SUCCESS;
> +
Regards,
--
Denis Charmet - TypX
Le mauvais esprit est un art de vivre
More information about the vlc-devel
mailing list