summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2020-05-02 03:21:47 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2020-05-02 03:21:47 +0300
commiteaea91975a9a220a76291e54f3725ca61586c3a9 (patch)
treeabde0090d79cf2f7b842e172d08f2724c3d4b7a3 /src/internal
parent5208d7a146ca84f6eaf9077ffd570534d9dbe2b6 (diff)
Add even more consts
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/subtitle/kitatlas.c2
-rw-r--r--src/internal/video/kitvideo.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/internal/subtitle/kitatlas.c b/src/internal/subtitle/kitatlas.c
index 31a4800..d75bdda 100644
--- a/src/internal/subtitle/kitatlas.c
+++ b/src/internal/subtitle/kitatlas.c
@@ -158,7 +158,7 @@ int Kit_GetAtlasItems(const Kit_TextureAtlas *atlas, SDL_Rect *sources, SDL_Rect
return max_count;
}
-int Kit_AddAtlasItem(Kit_TextureAtlas *atlas, SDL_Texture *texture, SDL_Surface *surface, const SDL_Rect *target) {
+int Kit_AddAtlasItem(Kit_TextureAtlas *atlas, SDL_Texture *texture, const SDL_Surface *surface, const SDL_Rect *target) {
assert(atlas != NULL);
assert(surface != NULL);
assert(target != NULL);
diff --git a/src/internal/video/kitvideo.c b/src/internal/video/kitvideo.c
index d2e0272..7cf6688 100644
--- a/src/internal/video/kitvideo.c
+++ b/src/internal/video/kitvideo.c
@@ -301,8 +301,8 @@ EXIT_0:
return NULL;
}
-double Kit_GetVideoDecoderPTS(Kit_Decoder *dec) {
- Kit_VideoPacket *packet = Kit_PeekDecoderOutput(dec);
+double Kit_GetVideoDecoderPTS(const Kit_Decoder *dec) {
+ const Kit_VideoPacket *packet = Kit_PeekDecoderOutput(dec);
if(packet == NULL) {
return -1.0;
}