From: Laurent Aimar Date: Tue, 2 Oct 2007 17:41:13 +0000 (+0000) Subject: Added a new decoder function (decoder_GetDisplayDate) to be used to convert a X-Git-Tag: 0.9.0-test0~5258 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=02a2154786be08d870542bde8985737fcb445614;p=vlc Added a new decoder function (decoder_GetDisplayDate) to be used to convert a decoder block_t date to a display date (identify for now) --- diff --git a/include/vlc_codec.h b/include/vlc_codec.h index 029cb59414..e59b2475ac 100644 --- a/include/vlc_codec.h +++ b/include/vlc_codec.h @@ -144,6 +144,6 @@ struct encoder_t VLC_EXPORT( input_attachment_t *, decoder_GetInputAttachment, ( decoder_t *, const char *psz_name ) ); VLC_EXPORT( int, decoder_GetInputAttachments, ( decoder_t *p_dec, input_attachment_t ***ppp_attachment, int *pi_attachment ) ); - +VLC_EXPORT( mtime_t, decoder_GetDisplayDate, ( decoder_t *, mtime_t ) ); #endif /* _VLC_CODEC_H */ diff --git a/src/input/decoder.c b/src/input/decoder.c index 2d20944bfa..6e81e6ca9b 100644 --- a/src/input/decoder.c +++ b/src/input/decoder.c @@ -110,6 +110,12 @@ int decoder_GetInputAttachments( decoder_t *p_dec, return input_Control( p_dec->p_owner->p_input, INPUT_GET_ATTACHMENTS, ppp_attachment, pi_attachment ); } +/* decoder_GetDisplayDate: + */ +mtime_t decoder_GetDisplayDate( decoder_t *p_dec, mtime_t i_ts ) +{ + return i_ts; +} /** * Spawns a new decoder thread