diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2016-01-17 03:17:22 +0200 |
---|---|---|
committer | Tuomas Virtanen <katajakasa@gmail.com> | 2016-01-17 03:17:22 +0200 |
commit | 5dc94e8cb8eefa6f708de5054e44477cd4598d78 (patch) | |
tree | 6a128e052d6cec8507119274e43a7c4d806e44ce /include/kitchensink/kitplayer.h | |
parent | b2727b578f0b8682f5bbc8651f2ce6a10bf6e271 (diff) |
This and that
Diffstat (limited to 'include/kitchensink/kitplayer.h')
-rw-r--r-- | include/kitchensink/kitplayer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h index 7e3ba53..1d1f5f9 100644 --- a/include/kitchensink/kitplayer.h +++ b/include/kitchensink/kitplayer.h @@ -6,6 +6,7 @@ #include <SDL2/SDL_render.h> #include <SDL2/SDL_thread.h> +#include <SDL2/SDL_surface.h> #include <stdbool.h> @@ -70,7 +71,6 @@ 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 @@ -104,7 +104,7 @@ KIT_API void Kit_ClosePlayer(Kit_Player *player); KIT_API int Kit_UpdatePlayer(Kit_Player *player); 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_GetSubtitleData(Kit_Player *player, SDL_Renderer *renderer); 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); |