]> git.sesse.net Git - vlc/commitdiff
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 029cb59414dc93a0735b31d15bff2de09419edb1..e59b2475acb5cbde8053dbacc652be3794662d50 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 2d20944bfaaafc1dada3f6afaa609278e6fe6860..6e81e6ca9b842e36b19886dabb30c1ddc79d8375 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