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:
martii
2014-03-16 07:29:38 +01:00
parent 88415f504e
commit bd349dc675
22 changed files with 116 additions and 661 deletions

View File

@@ -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;
}