mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
adaption to VDR 1.7.12 cReceiver API change
This commit is contained in:
parent
24a1638ddd
commit
4c0888d483
1
HISTORY
1
HISTORY
@ -1,6 +1,7 @@
|
|||||||
VDR Plugin 'streamdev' Revision History
|
VDR Plugin 'streamdev' Revision History
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
- adaption to VDR 1.7.12 cReceiver API change
|
||||||
- increased WRITERBUFSIZE. Has been reported to fix some ringbuffer
|
- increased WRITERBUFSIZE. Has been reported to fix some ringbuffer
|
||||||
overflows (thanks to Lubo¨ Dole¸el)
|
overflows (thanks to Lubo¨ Dole¸el)
|
||||||
- check availability of channel if VTP command TUNE is called without
|
- check availability of channel if VTP command TUNE is called without
|
||||||
|
@ -29,15 +29,24 @@ protected:
|
|||||||
virtual void Receive(uchar *Data, int Length);
|
virtual void Receive(uchar *Data, int Length);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
cStreamdevLiveReceiver(cStreamdevStreamer *Streamer, tChannelID ChannelID, int Priority, const int *Pids);
|
cStreamdevLiveReceiver(cStreamdevStreamer *Streamer, const cChannel *Channel, int Priority, const int *Pids);
|
||||||
virtual ~cStreamdevLiveReceiver();
|
virtual ~cStreamdevLiveReceiver();
|
||||||
};
|
};
|
||||||
|
|
||||||
cStreamdevLiveReceiver::cStreamdevLiveReceiver(cStreamdevStreamer *Streamer, tChannelID ChannelID,
|
cStreamdevLiveReceiver::cStreamdevLiveReceiver(cStreamdevStreamer *Streamer, const cChannel *Channel,
|
||||||
int Priority, const int *Pids):
|
int Priority, const int *Pids):
|
||||||
cReceiver(ChannelID, Priority, 0, Pids),
|
#if APIVERSNUM >= 10712
|
||||||
|
cReceiver(Channel, Priority),
|
||||||
|
#else
|
||||||
|
cReceiver(Channel->GetChannelID(), Priority, 0, Pids),
|
||||||
|
#endif
|
||||||
m_Streamer(Streamer)
|
m_Streamer(Streamer)
|
||||||
{
|
{
|
||||||
|
#if APIVERSNUM >= 10712
|
||||||
|
// clears all PIDs but channel remains set
|
||||||
|
SetPids(NULL);
|
||||||
|
AddPids(Pids);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
cStreamdevLiveReceiver::~cStreamdevLiveReceiver()
|
cStreamdevLiveReceiver::~cStreamdevLiveReceiver()
|
||||||
@ -456,7 +465,7 @@ void cStreamdevLiveStreamer::StartReceiver(void)
|
|||||||
if (m_NumPids > 0) {
|
if (m_NumPids > 0) {
|
||||||
Dprintf("Creating Receiver to respect changed pids\n");
|
Dprintf("Creating Receiver to respect changed pids\n");
|
||||||
cReceiver *current = m_Receiver;
|
cReceiver *current = m_Receiver;
|
||||||
m_Receiver = new cStreamdevLiveReceiver(this, m_Channel->GetChannelID(), m_Priority, m_Pids);
|
m_Receiver = new cStreamdevLiveReceiver(this, m_Channel, m_Priority, m_Pids);
|
||||||
cThreadLock ThreadLock(m_Device);
|
cThreadLock ThreadLock(m_Device);
|
||||||
if (IsRunning())
|
if (IsRunning())
|
||||||
Attach();
|
Attach();
|
||||||
|
Loading…
Reference in New Issue
Block a user