summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitplayer.h
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2016-01-11 02:35:02 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2016-01-11 02:35:02 +0200
commit9ad6420f5e781ec3800604835221cf026b91483c (patch)
tree1785f04af6bb60eff1c68245dbe27427d5a52031 /include/kitchensink/kitplayer.h
parent8ee9b3e560a39d65c62a87fc797ddcc1279b3a78 (diff)
Basic video sync + frameskip + play/pause/stop control
Diffstat (limited to 'include/kitchensink/kitplayer.h')
-rw-r--r--include/kitchensink/kitplayer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h
index 8f67a9b..a40b12d 100644
--- a/include/kitchensink/kitplayer.h
+++ b/include/kitchensink/kitplayer.h
@@ -15,8 +15,6 @@ extern "C" {
#define KIT_CODECMAX 16
#define KIT_CODECNAMEMAX 128
-#define KIT_VBUFFERSIZE 3
-#define KIT_ABUFFERSIZE 65536
typedef enum Kit_PlayerState {
KIT_STOPPED = 0,
@@ -44,6 +42,10 @@ typedef struct Kit_Player {
Kit_PlayerState state;
Kit_VideoFormat vformat;
Kit_AudioFormat aformat;
+ double clock_sync;
+ double clock_vprev;
+ double clock_aprev;
+ double pause_start;
SDL_Thread *dec_thread;
SDL_mutex *vmutex;
SDL_mutex *amutex;