Advertisement
svenhoefer

Untitled

Dec 29th, 2017
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. void cPlayback::FindAllSubs(uint16_t *pids, unsigned short *supported, uint16_t *numpida, std::string *language)
  2. {
  3.     *numpida = 0;
  4.     if(playMode == PLAYMODE_FILE)
  5.         fp->GetAllSubs(pids, supported, numpida, language);
  6. }
  7.  
  8. bool cPlayback::SelectSubtitles(int pid, std::string charset)
  9. {
  10.     if(playMode == PLAYMODE_FILE) {
  11.         fp->SetSubtitles(pid, charset);
  12.         return true;
  13.     }
  14.     return false;
  15. }
  16.  
  17. void cPlayback::GetChapters(std::vector<int> &positions, std::vector<std::string> &titles)
  18. {
  19.     positions.clear();
  20.     titles.clear();
  21.     if(playMode == PLAYMODE_FILE) {
  22.         return fp->GetChapters(positions, titles);
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement