diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-25 21:58:42 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-10-25 21:58:42 +0000 |
| commit | 7a55b56227014d8e6cff6773946d19219b4599f8 (patch) | |
| tree | dcf48c76bfc84fa811bcd201b6922304f4fd7138 /lib/dvb/subtitle.cpp | |
| parent | a274f72e1fcbe404d1e68c605f21453123287fbd (diff) | |
| download | enigma2-7a55b56227014d8e6cff6773946d19219b4599f8.tar.gz enigma2-7a55b56227014d8e6cff6773946d19219b4599f8.zip | |
fix 'start'/'stop'/'select other' subtitles
Diffstat (limited to 'lib/dvb/subtitle.cpp')
| -rw-r--r-- | lib/dvb/subtitle.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/dvb/subtitle.cpp b/lib/dvb/subtitle.cpp index 23ea6dce..0058a51c 100644 --- a/lib/dvb/subtitle.cpp +++ b/lib/dvb/subtitle.cpp @@ -1113,15 +1113,24 @@ eDVBSubtitleParser::~eDVBSubtitleParser() subtitle_reset(); } +int eDVBSubtitleParser::stop() +{ + if (m_pes_reader) + { + eDebug("disable dvb subtitles"); + return m_pes_reader->stop(); + } + return -1; +} + int eDVBSubtitleParser::start(int pid) { -#if 1 - eDebug("eDVBSubtitleParser::start(%04x)", pid); if (m_pes_reader) + { + eDebug("start dvb subtitles on pid 0x%04x", pid); return m_pes_reader->start(pid); - else - return -1; -#endif + } + return -1; } void eDVBSubtitleParser::connectNewPage(const Slot1<void, const eDVBSubtitlePage&> &slot, ePtr<eConnection> &connection) |
