summaryrefslogtreecommitdiff
path: root/src/internal/audio/kitaudio.c
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-08-27 18:42:12 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-08-27 18:42:12 +0300
commit4705736c8dafbda9ed262d9d399544ba1881a1d8 (patch)
tree095eb6b866bc01bc923d3fef87dc60cff9e32b2f /src/internal/audio/kitaudio.c
parent9946f7661af8799fbe67dec5a4ae4890c0c79fdf (diff)
Snappier seek
Diffstat (limited to 'src/internal/audio/kitaudio.c')
-rw-r--r--src/internal/audio/kitaudio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/internal/audio/kitaudio.c b/src/internal/audio/kitaudio.c
index b1a0fdc..e399ff2 100644
--- a/src/internal/audio/kitaudio.c
+++ b/src/internal/audio/kitaudio.c
@@ -264,6 +264,14 @@ exit_0:
return NULL;
}
+double Kit_GetAudioDecoderPTS(Kit_Decoder *dec) {
+ Kit_AudioPacket *packet = Kit_PeekDecoderOutput(dec);
+ if(packet == NULL) {
+ return -1.0;
+ }
+ return packet->pts;
+}
+
int Kit_GetAudioDecoderData(Kit_Decoder *dec, unsigned char *buf, int len) {
assert(dec != NULL);