mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-30 08:50:56 +02:00
libeplayer3: let neutrino handle bitmap subtitles
Origin commit data
------------------
Branch: master
Commit: d9e8e98678
Author: martii <m4rtii@gmx.de>
Date: 2014-03-16 (Sun, 16 Mar 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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