From 731704ad9794534fb3350c793ac1b8f24082795b Mon Sep 17 00:00:00 2001 From: BPanther Date: Tue, 20 Feb 2024 00:09:23 +0100 Subject: [PATCH] arm/mips: fix subtitle count (thx DBoxOldie) Origin commit data ------------------ Commit: https://github.com/Duckbox-Developers/libstb-hal-ddt/commit/8b01ae47b8e0d292d4963381b2431155fc3671ba Author: BPanther Date: 2024-02-20 (Tue, 20 Feb 2024) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/playback/playback.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libeplayer3/playback/playback.c b/libeplayer3/playback/playback.c index 9a5b9e3..b6210d3 100644 --- a/libeplayer3/playback/playback.c +++ b/libeplayer3/playback/playback.c @@ -248,6 +248,8 @@ static int PlaybackClose(Context_t *context) context->manager->video->Command(context, MANAGER_DEL, NULL); if (context->manager->chapter) context->manager->chapter->Command(context, MANAGER_DEL, NULL); + if (context->manager->subtitle) + context->manager->subtitle->Command(context, MANAGER_DEL, NULL); context->playback->isPaused = 0; context->playback->isPlaying = 0;