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

Nicolas Bertrand nicoinattendu at gmail.com
Mon Nov 25 23:55:43 CET 2013


Le 25/11/2013 16:23, Denis Charmet a écrit :
>> +        case DEMUX_SET_TIME:
>> >+            i64 = ( int64_t ) va_arg ( args, int64_t );
>> >+            msg_Warn( p_demux, "DEMUX_SET_TIME"  );
>> >+            p_sys->frame_no = i64 * p_sys->frame_rate_num / ( 1000000 * p_sys->frame_rate_denom );
>> >+            p_sys->i_pts= i64;
>> >+            es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, ( mtime_t ) i64 );
> Beware of use of ES_OUT_SET_NEXT_DISPLAY_TIME without a proper SET_PCR
> before. You could be stuck for a long time.
So I can do ?
         case DEMUX_SET_TIME:
             i64 = ( int64_t ) va_arg ( args, int64_t );
             msg_Warn( p_demux, "DEMUX_SET_TIME"  );
             p_sys->frame_no = i64 * p_sys->frame_rate_num / ( 
CLOCK_FREQ * p_sys->frame_rate_denom );
             p_sys->i_pts= i64;
	    es_out_Control( p_demux->out, ES_OUT_SET_PCR, pts );
             es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME, 
( mtime_t ) i64 );




More information about the vlc-devel mailing list