mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 15:33:00 +02:00
libeplayer3: let neutrino handle bitmap subtitles
This commit is contained in:
@@ -381,10 +381,9 @@ static int SrtGetSubtitle(Context_t * context, char *Filename)
|
||||
memset(&Subtitle, 0, sizeof(Subtitle));
|
||||
Subtitle.Name = subtitleExtension;
|
||||
Subtitle.Encoding = "S_TEXT/SRT";
|
||||
Subtitle.Id = i++,
|
||||
context->manager->subtitle->Command(context,
|
||||
MANAGER_ADD,
|
||||
&Subtitle);
|
||||
Subtitle.Id = i++;
|
||||
Subtitle.is_static = 1;
|
||||
context->manager->subtitle->Command(context, MANAGER_ADD, &Subtitle);
|
||||
}
|
||||
} /* while */
|
||||
closedir(dir);
|
||||
@@ -487,6 +486,7 @@ static int Command(void *_context, ContainerCmd_t command, void *argument)
|
||||
switch (command) {
|
||||
case CONTAINER_INIT:{
|
||||
char *filename = (char *) argument;
|
||||
SrtDel(context);
|
||||
ret = SrtGetSubtitle(context, filename);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user