From 02a2154786be08d870542bde8985737fcb445614 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Tue, 2 Oct 2007 17:41:13 +0000 Subject: [PATCH] Added a new decoder function (decoder_GetDisplayDate) to be used to convert a decoder block_t date to a display date (identify for now) --- include/vlc_codec.h | 2 +- src/input/decoder.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- 2.39.2