Added a new decoder function (decoder_GetDisplayDate) to be used to convert a
authorLaurent Aimar <fenrir@videolan.org>
Tue, 2 Oct 2007 17:41:13 +0000 (17:41 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 2 Oct 2007 17:41:13 +0000 (17:41 +0000)
decoder block_t date to a display date (identify for now)

include/vlc_codec.h
src/input/decoder.c

index 029cb59..e59b247 100644 (file)
@@ -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 */
index 2d20944..6e81e6c 100644 (file)
@@ -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