rename iDataSource to iTsSource (no functional change)
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 24 Nov 2010 15:06:57 +0000 (16:06 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Wed, 24 Nov 2010 15:10:56 +0000 (16:10 +0100)
13 files changed:
lib/base/filepush.cpp
lib/base/filepush.h
lib/base/itssource.h [moved from lib/base/idatasource.h with 93% similarity]
lib/base/rawfile.h
lib/dvb/dvb.cpp
lib/dvb/dvb.h
lib/dvb/idvb.h
lib/dvb/pmt.cpp
lib/dvb/pmt.h
lib/dvb/tstools.cpp
lib/dvb/tstools.h
lib/service/servicedvb.cpp
lib/service/servicedvb.h

index af5a8bb68c48e896b2d3039495f52daee378797b..e3e2a13ad8e060a83678afbcfc9be841af0903da 100644 (file)
@@ -227,7 +227,7 @@ void eFilePushThread::thread()
 void eFilePushThread::start(int fd, int fd_dest)
 {
        eRawFile *f = new eRawFile();
-       ePtr<iDataSource> source = f;
+       ePtr<iTsSource> source = f;
        f->setfd(fd);
        start(source, fd_dest);
 }
@@ -235,14 +235,14 @@ void eFilePushThread::start(int fd, int fd_dest)
 int eFilePushThread::start(const char *file, int fd_dest)
 {
        eRawFile *f = new eRawFile();
-       ePtr<iDataSource> source = f;
+       ePtr<iTsSource> source = f;
        if (f->open(file) < 0)
                return -1;
        start(source, fd_dest);
        return 0;
 }
 
-void eFilePushThread::start(ePtr<iDataSource> &source, int fd_dest)
+void eFilePushThread::start(ePtr<iTsSource> &source, int fd_dest)
 {
        m_source = source;
        m_fd_dest = fd_dest;
index eb8e7924dc89dcba8481fedaaec8226f7ffb1a16..a4457f67d3ec9f11b38f8121c68c4d13d4b01c29 100644 (file)
@@ -25,7 +25,7 @@ public:
        void start(int sourcefd, int destfd);
        int start(const char *filename, int destfd);
 
-       void start(ePtr<iDataSource> &source, int destfd);
+       void start(ePtr<iTsSource> &source, int destfd);
 
        void pause();
        void resume();
@@ -60,7 +60,7 @@ private:
        int m_blocksize;
        off_t m_current_position;
 
-       ePtr<iDataSource> m_source;
+       ePtr<iTsSource> m_source;
 
        eFixedMessagePump<int> m_messagepump;
 
similarity index 93%
rename from lib/base/idatasource.h
rename to lib/base/itssource.h
index 0daa5267f0b70e6a43fc7da48ef35bfb497afa86..91167ff599573b1b29c6795cafc1b6d0ffe75712 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <lib/base/object.h>
 
-class iDataSource: public iObject
+class iTsSource: public iObject
 {
 public:
         /* NOTE: should only be used to get current position or filelength */
index 1720d581981bc482343cf20bf1d8ce658553c658..7b736a33afc258db8f938fdba140451092c2dd33 100644 (file)
@@ -2,9 +2,9 @@
 #define __lib_base_rawfile_h
 
 #include <string>
-#include <lib/base/idatasource.h>
+#include <lib/base/itssource.h>
 
-class eRawFile: public iDataSource
+class eRawFile: public iTsSource
 {
        DECLARE_REF(eRawFile);
        eSingleLock m_lock;
@@ -15,7 +15,7 @@ public:
        void setfd(int fd);
        int close();
 
-       // iDataSource
+       // iTsSource
        off_t lseek(off_t offset, int whence);
        ssize_t read(off_t offset, void *buf, size_t count);
        off_t length();
index c980ac5af99a0d7bfaee52d77261a739d93ea990..414ab8da7d9419f37b86d722bf7617523ccb3cea 100644 (file)
@@ -1753,7 +1753,7 @@ RESULT eDVBChannel::getCurrentFrontendParameters(ePtr<iDVBFrontendParameters> &p
 RESULT eDVBChannel::playFile(const char *file)
 {
        eRawFile *f = new eRawFile();
-       ePtr<iDataSource> source = f;
+       ePtr<iTsSource> source = f;
 
        if (f->open(file) < 0)
        {
@@ -1764,7 +1764,7 @@ RESULT eDVBChannel::playFile(const char *file)
        return playSource(source, file);
 }
 
-RESULT eDVBChannel::playSource(ePtr<iDataSource> &source, const char *streaminfo_file)
+RESULT eDVBChannel::playSource(ePtr<iTsSource> &source, const char *streaminfo_file)
 {
        ASSERT(!m_frontend);
        if (m_pvr_thread)
@@ -1826,7 +1826,7 @@ void eDVBChannel::stopSource()
        }
        if (m_pvr_fd_dst >= 0)
                ::close(m_pvr_fd_dst);
-       ePtr<iDataSource> d;
+       ePtr<iTsSource> d;
        m_tstools.setSource(d);
 }
 
index 92771604f3fcaa1395731f6956c9619fc127a9c8..f612affb67c1ebe930a4c938e0845c44352c8072 100644 (file)
@@ -260,7 +260,7 @@ public:
        RESULT playFile(const char *file);
        void stopFile();
 
-       RESULT playSource(ePtr<iDataSource>& source, const char *priv=NULL);
+       RESULT playSource(ePtr<iTsSource>& source, const char *priv=NULL);
        void stopSource();
 
        void setCueSheet(eCueSheet *cuesheet);
index 3996b6b60b0049eac0ce4d1982f180799bc31605..f15cd04e529622906b18f4729f675f88aadfe22e 100644 (file)
@@ -15,7 +15,7 @@
 #include <lib/base/object.h>
 #include <lib/base/ebase.h>
 #include <lib/base/elock.h>
-#include <lib/base/idatasource.h>
+#include <lib/base/itssource.h>
 #include <lib/service/service.h>
 #include <libsig_comp.h>
 #include <connection.h>
@@ -607,7 +607,7 @@ public:
        virtual void stopFile() = 0;
        
        /* new interface */
-       virtual RESULT playSource(ePtr<iDataSource> &source, const char *priv=NULL) = 0;
+       virtual RESULT playSource(ePtr<iTsSource> &source, const char *priv=NULL) = 0;
        virtual void stopSource() = 0;
        
        virtual void setCueSheet(eCueSheet *cuesheet) = 0;
index 7b7996626d43c328cc7532f3154ff3d3ee68832d..46fa12edb6e8903ab40a633ee61b6f2e3a70dca8 100644 (file)
@@ -675,11 +675,11 @@ void eDVBServicePMTHandler::SDTScanEvent(int event)
 
 int eDVBServicePMTHandler::tune(eServiceReferenceDVB &ref, int use_decode_demux, eCueSheet *cue, bool simulate, eDVBService *service)
 {
-       ePtr<iDataSource> s;
+       ePtr<iTsSource> s;
        return tuneExt(ref, use_decode_demux, s, NULL, cue, simulate, service);
 }
 
-int eDVBServicePMTHandler::tuneExt(eServiceReferenceDVB &ref, int use_decode_demux, ePtr<iDataSource> &source, const char *streaminfo_file, eCueSheet *cue, bool simulate, eDVBService *service)
+int eDVBServicePMTHandler::tuneExt(eServiceReferenceDVB &ref, int use_decode_demux, ePtr<iTsSource> &source, const char *streaminfo_file, eCueSheet *cue, bool simulate, eDVBService *service)
 {
        RESULT res=0;
        m_reference = ref;
index 721a8fcaf58d37a597a9305fa2b565dbeda8e000..de0de052fed7e77c11b6273944beff391405b165 100644 (file)
@@ -209,7 +209,7 @@ public:
        int tune(eServiceReferenceDVB &ref, int use_decode_demux, eCueSheet *sg=0, bool simulate=false, eDVBService *service = 0);
 
        /* new interface */
-       int tuneExt(eServiceReferenceDVB &ref, int use_decode_demux, ePtr<iDataSource> &, const char *streaminfo_file, eCueSheet *sg=0, bool simulate=false, eDVBService *service = 0);
+       int tuneExt(eServiceReferenceDVB &ref, int use_decode_demux, ePtr<iTsSource> &, const char *streaminfo_file, eCueSheet *sg=0, bool simulate=false, eDVBService *service = 0);
 
        void free();
 private:
index bd3630893b860933ebdc605410f2586f98576409..cfea3fddeae2297d68d45152be25455c54f0f22c 100644 (file)
@@ -35,7 +35,7 @@ eDVBTSTools::~eDVBTSTools()
 int eDVBTSTools::openFile(const char *filename, int nostreaminfo)
 {
        eRawFile *f = new eRawFile();
-       ePtr<iDataSource> src = f;
+       ePtr<iTsSource> src = f;
 
        if (f->open(filename, 1) < 0)
                return -1;
@@ -45,7 +45,7 @@ int eDVBTSTools::openFile(const char *filename, int nostreaminfo)
        return 0;
 }
 
-void eDVBTSTools::setSource(ePtr<iDataSource> &source, const char *stream_info_filename)
+void eDVBTSTools::setSource(ePtr<iTsSource> &source, const char *stream_info_filename)
 {
        closeFile();
 
index 1192cd2d0355b3ba75eb1eb069480688e836af45..99827921f84fc20e21fc6e1e172bae88f3e9d3a9 100644 (file)
@@ -19,7 +19,7 @@ public:
        eDVBTSTools();
        ~eDVBTSTools();
 
-       void setSource(ePtr<iDataSource> &source, const char *streaminfo_filename=NULL);
+       void setSource(ePtr<iTsSource> &source, const char *streaminfo_filename=NULL);
        void closeSource();
 
        int openFile(const char *filename, int nostreaminfo = 0);
@@ -80,7 +80,7 @@ private:
        int m_pid;
        int m_maxrange;
 
-       ePtr<iDataSource> m_source;
+       ePtr<iTsSource> m_source;
 
        int m_begin_valid, m_end_valid;
        pts_t m_pts_begin, m_pts_end;
index 1e58d848573f68310188a99ca11efaaa79631cdd..0d617c3043e984cbbb8d20022148f31407af94e0 100644 (file)
@@ -1094,7 +1094,7 @@ void eDVBServicePlay::serviceEventTimeshift(int event)
 
                        if (m_skipmode < 0)
                                m_cue->seekTo(0, -1000);
-                       ePtr<iDataSource> source = createDataSource(r);
+                       ePtr<iTsSource> source = createTsSource(r);
                        m_service_handler_timeshift.tuneExt(r, 1, source, r.path.c_str(), m_cue, 0, m_dvb_service); /* use the decoder demux for everything */
 
                        m_event((iPlayableService*)this, evUser+1);
@@ -1124,7 +1124,7 @@ void eDVBServicePlay::serviceEventTimeshift(int event)
                                m_service_handler_timeshift.free();
                                resetTimeshift(1);
 
-                               ePtr<iDataSource> source = createDataSource(r);
+                               ePtr<iTsSource> source = createTsSource(r);
                                m_service_handler_timeshift.tuneExt(r, 1, source, m_timeshift_file_next.c_str(), m_cue, 0, m_dvb_service); /* use the decoder demux for everything */
 
                                m_event((iPlayableService*)this, evUser+1);
@@ -1155,7 +1155,7 @@ RESULT eDVBServicePlay::start()
                m_event(this, evStart);
 
        m_first_program_info = 1;
-       ePtr<iDataSource> source = createDataSource(service);
+       ePtr<iTsSource> source = createTsSource(service);
        m_service_handler.tuneExt(service, m_is_pvr, source, service.path.c_str(), m_cue, false, m_dvb_service);
 
        if (m_is_pvr)
@@ -2360,11 +2360,11 @@ void eDVBServicePlay::resetTimeshift(int start)
                m_timeshift_active = 0;
 }
 
-ePtr<iDataSource> eDVBServicePlay::createDataSource(eServiceReferenceDVB &ref)
+ePtr<iTsSource> eDVBServicePlay::createTsSource(eServiceReferenceDVB &ref)
 {
        eRawFile *f = new eRawFile();
        f->open(ref.path.c_str());
-       return ePtr<iDataSource>(f);
+       return ePtr<iTsSource>(f);
 }
 
 void eDVBServicePlay::switchToTimeshift()
@@ -2379,7 +2379,7 @@ void eDVBServicePlay::switchToTimeshift()
 
        m_cue->seekTo(0, -1000);
 
-       ePtr<iDataSource> source = createDataSource(r);
+       ePtr<iTsSource> source = createTsSource(r);
        m_service_handler_timeshift.tuneExt(r, 1, source, m_timeshift_file.c_str(), m_cue, 0, m_dvb_service); /* use the decoder demux for everything */
 
        eDebug("eDVBServicePlay::switchToTimeshift, in pause mode now.");
index 23675bf67e70a293fdaa9c688774f80c7be16da8..3efc259de4d8612a94a2fc88c361aa089fbb6669 100644 (file)
@@ -290,7 +290,7 @@ protected:
        ePtr<eConnection> m_video_event_connection;
        void video_event(struct iTSMPEGDecoder::videoEvent);
 
-       virtual ePtr<iDataSource> createDataSource(eServiceReferenceDVB &ref);
+       virtual ePtr<iTsSource> createTsSource(eServiceReferenceDVB &ref);
 };
 
 class eStaticServiceDVBBouquetInformation: public iStaticServiceInformation