X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/7544e052e6ed6a5d1e0fd783bd04f4b8aa0d45ce..f94e2c9821eb8784ca03b7122485d4720ec6d6e6:/lib/dvb/decoder.h diff --git a/lib/dvb/decoder.h b/lib/dvb/decoder.h index df639551..7bd16fd1 100644 --- a/lib/dvb/decoder.h +++ b/lib/dvb/decoder.h @@ -11,13 +11,17 @@ private: ePtr m_demux; int m_fd, m_fd_demux; public: + enum {aMPEG, aAC3, aDTS }; eDVBAudio(eDVBDemux *demux, int dev); - int startPid(int pid); + int startPid(int pid, int type); void stop(); #if HAVE_DVB_API_VERSION < 3 void start(); void stopPid(); #endif + void flush(); + void freeze(); + void unfreeze(); virtual ~eDVBAudio(); }; @@ -35,6 +39,9 @@ public: void start(); void stopPid(); #endif + void flush(); + void freeze(); + void unfreeze(); virtual ~eDVBVideo(); }; @@ -51,7 +58,7 @@ public: virtual ~eDVBPCR(); }; -class eTSMPEGDecoder: public iTSMPEGDecoder +class eTSMPEGDecoder: public Object, public iTSMPEGDecoder { DECLARE_REF(eTSMPEGDecoder); private: @@ -68,6 +75,9 @@ private: }; int m_changed; int setState(); + ePtr m_demux_event; + + void demux_event(int event); public: enum { pidNone = -1 }; eTSMPEGDecoder(eDVBDemux *demux, int decoder); @@ -83,5 +93,6 @@ public: RESULT setPictureSkipMode(int what); RESULT setSlowMotion(int repeat); RESULT setZoom(int what); + RESULT flush(); }; #endif