[vlc-devel] [PATCHv6] dcp: Creation of access-demux module for DCP

Denis Charmet typx at dinauz.org
Tue Nov 26 10:17:41 CET 2013


Hi,

Le lundi 25 novembre 2013 à 11:50:09, Nicolas Bertrand a écrit :
> Le 25/11/2013 16:23, Denis Charmet a écrit :
> >>+        case DEMUX_GET_TIME:
> >>>+            pi64 = ( int64_t* ) va_arg ( args, int64_t* );
> >>>+            *pi64 = p_sys->i_pts >= 0 ? p_sys->i_pts : 0;
> >Unless I've missed it p_sys->i_pts isn't set in Demux().
> Isn't p_sys->i_pts set via
> es_out_Control( p_demux->out, ES_OUT_SET_PCR, pts );
> in demux ?
Nope, p_sys is a black box for the core and it will never try to access
its content. Everything in p_sys is your responsibility.

> Or should I add a p_sys->i_pts = pts in demux?
If you plan to use it yes :)

Regards,

-- 
Denis Charmet - TypX
Le mauvais esprit est un art de vivre



More information about the vlc-devel mailing list