Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
formiano committed Dec 11, 2024
1 parent b901ada commit 832ceb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 1 addition & 3 deletions lib/dvb/demux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ RESULT eDVBDemux::setSourceFrontend(int fenum)
int n = DMX_SOURCE_FRONT0 + fenum;
int res = ::ioctl(fd, DMX_SET_SOURCE, &n);
if (res)
{
eDebug("[eDVBDemux] DMX_SET_SOURCE Frontend%d failed: %m", fenum);
}
else
source = fenum;
::close(fd);
Expand Down Expand Up @@ -142,7 +140,7 @@ RESULT eDVBDemux::createPESReader(eMainloop *context, ePtr<iDVBPESReader> &reade
return res;
}

RESULT eDVBDemux::createTSRecorder(ePtr<iDVBTSRecorder> &recorder, unsigned int packetsize, bool streaming)
RESULT eDVBDemux::createTSRecorder(ePtr<iDVBTSRecorder> &recorder, int packetsize, bool streaming)
{
if (m_dvr_busy)
return -EBUSY;
Expand Down
12 changes: 6 additions & 6 deletions lib/dvb/idvb.h
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ class iDVBFrontend: public iDVBFrontend_ENUMS, public iObject
virtual int closeFrontend(bool force = false, bool no_delayed = false)=0;
virtual void reopenFrontend()=0;
#ifndef SWIG
virtual RESULT connectStateChange(const sigc::slot1<void,iDVBFrontend*> &stateChange, ePtr<eConnection> &connection)=0;
virtual RESULT connectStateChange(const sigc::slot<void(iDVBFrontend*)> &stateChange, ePtr<eConnection> &connection)=0;
#endif
virtual RESULT getState(int &SWIG_OUTPUT)=0;
virtual RESULT setTone(int tone)=0;
Expand Down Expand Up @@ -664,8 +664,8 @@ class iDVBChannel: public iObject
{
evtPreStart, evtEOF, evtSOF, evtFailed, evtStopped
};
virtual RESULT connectStateChange(const sigc::slot1<void,iDVBChannel*> &stateChange, ePtr<eConnection> &connection)=0;
virtual RESULT connectEvent(const sigc::slot2<void,iDVBChannel*,int> &eventChange, ePtr<eConnection> &connection)=0;
virtual RESULT connectStateChange(const sigc::slot<void(iDVBChannel*)> &stateChange, ePtr<eConnection> &connection)=0;
virtual RESULT connectEvent(const sigc::slot<void(iDVBChannel*,int)> &eventChange, ePtr<eConnection> &connection)=0;

/* demux capabilities */
enum
Expand Down Expand Up @@ -716,12 +716,12 @@ class eCueSheet: public iObject, public sigc::trackable

/* backend */
enum { evtSeek, evtSkipmode, evtSpanChanged };
RESULT connectEvent(const sigc::slot1<void, int> &event, ePtr<eConnection> &connection);
RESULT connectEvent(const sigc::slot<void(int)> &event, ePtr<eConnection> &connection);

std::list<std::pair<pts_t,pts_t> > m_spans; /* begin, end */
std::list<std::pair<int, pts_t> > m_seek_requests; /* relative, delta */
pts_t m_skipmode_ratio;
sigc::signal1<void,int> m_event;
sigc::signal<void(int)> m_event;
ePtr<iDVBDemux> m_decoding_demux;
ePtr<iTSMPEGDecoder> m_decoder;
};
Expand Down Expand Up @@ -854,7 +854,7 @@ class iTSMPEGDecoder: public iObject
unsigned short gamma;
};

virtual RESULT connectVideoEvent(const sigc::slot1<void, struct videoEvent> &event, ePtr<eConnection> &connection) = 0;
virtual RESULT connectVideoEvent(const sigc::slot<void(struct videoEvent)> &event, ePtr<eConnection> &connection) = 0;

virtual int getVideoWidth() = 0;
virtual int getVideoHeight() = 0;
Expand Down

0 comments on commit 832ceb3

Please sign in to comment.