summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-09-29 20:41:33 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-09-29 20:41:33 +0300
commita42322398d09b97433557d9e1f7686042b9beba5 (patch)
tree5de88bba5f1a154366a0a15dda02488f6ba35023
parentf13b325ee0eecdaa7d2acbe0edcaecc8933e39ef (diff)
Code cleanups
-rw-r--r--src/internal/audio/kitaudio.c5
-rw-r--r--src/internal/video/kitvideo.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/src/internal/audio/kitaudio.c b/src/internal/audio/kitaudio.c
index e4ac6a7..e0302ee 100644
--- a/src/internal/audio/kitaudio.c
+++ b/src/internal/audio/kitaudio.c
@@ -300,11 +300,6 @@ int Kit_GetAudioDecoderData(Kit_Decoder *dec, unsigned char *buf, int len) {
free_out_audio_packet_cb(packet);
packet = next_packet;
}
-
- // If we still have NULL packet, stop here.
- if(packet == NULL) {
- break;
- }
dec->clock_pos = packet->pts;
if(packet->pts > sync_ts - KIT_AUDIO_SYNC_THRESHOLD) {
diff --git a/src/internal/video/kitvideo.c b/src/internal/video/kitvideo.c
index 7b0d1de..cde5226 100644
--- a/src/internal/video/kitvideo.c
+++ b/src/internal/video/kitvideo.c
@@ -273,11 +273,6 @@ int Kit_GetVideoDecoderData(Kit_Decoder *dec, SDL_Texture *texture) {
packet = next_packet;
}
- // If we still have NULL packet, stop here.
- if(packet == NULL) {
- break;
- }
-
dec->clock_pos = packet->pts;
if(packet->pts > sync_ts - KIT_VIDEO_SYNC_THRESHOLD) {
break;