Sideloaded SRT file support
This commit is contained in:
parent
dd9e68e4db
commit
0f7f6b3bc7
2 changed files with 155 additions and 11 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <mist/timing.h>
|
||||
#include <mist/dtsc.h>
|
||||
#include <mist/shared_memory.h>
|
||||
#include <fstream>
|
||||
|
||||
#include "../io.h"
|
||||
|
||||
|
@ -75,6 +76,14 @@ namespace Mist {
|
|||
std::map<unsigned int, std::map<unsigned int, unsigned int> > pageCounter;
|
||||
|
||||
static Input * singleton;
|
||||
|
||||
bool hasSrt;
|
||||
std::ifstream srtSource;
|
||||
unsigned int srtTrack;
|
||||
|
||||
void readSrtHeader();
|
||||
void getNextSrt(bool smart = true);
|
||||
DTSC::Packet srtPack;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue