fix 'start'/'stop'/'select other' subtitles
[enigma2.git] / lib / dvb / subtitle.cpp
index 23ea6dce11edaa6d50cbedddd8735b546db25241..0058a51c09869ef52249b10146278cbc750547e2 100644 (file)
@@ -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)