summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitplayer.h
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2016-01-16 23:09:10 +0200
committerTuomas Virtanen <katajakasa@gmail.com>2016-01-16 23:09:10 +0200
commitb2727b578f0b8682f5bbc8651f2ce6a10bf6e271 (patch)
tree3cba8e816199cb591b3348875957c02bcb54e8f7 /include/kitchensink/kitplayer.h
parent1909055c10e4864190885862e086332c5077f766 (diff)
Decode subtitles, still needs presentation
Diffstat (limited to 'include/kitchensink/kitplayer.h')
-rw-r--r--include/kitchensink/kitplayer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h
index ea86b31..7e3ba53 100644
--- a/include/kitchensink/kitplayer.h
+++ b/include/kitchensink/kitplayer.h
@@ -70,6 +70,7 @@ typedef struct Kit_Player {
void *vbuffer; ///< Video stream buffer
void *sbuffer; ///< Subtitle stream buffer
void *cbuffer; ///< Control stream buffer
+ void *active_subs; ///< Active subtitles buffer
// FFmpeg internal state
void *vcodec_ctx; ///< FFmpeg: Video codec context
@@ -102,7 +103,8 @@ KIT_API Kit_Player* Kit_CreatePlayer(const Kit_Source *src);
KIT_API void Kit_ClosePlayer(Kit_Player *player);
KIT_API int Kit_UpdatePlayer(Kit_Player *player);
-KIT_API int Kit_RefreshTexture(Kit_Player *player, SDL_Texture *texture);
+KIT_API int Kit_GetVideoData(Kit_Player *player, SDL_Texture *texture);
+KIT_API int Kit_GetSubtitleData(Kit_Player *player, SDL_Texture *texture);
KIT_API int Kit_GetAudioData(Kit_Player *player, unsigned char *buffer, int length, int cur_buf_len);
KIT_API void Kit_GetPlayerInfo(const Kit_Player *player, Kit_PlayerInfo *info);