mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
In TSPIDS mode, create and attach receiver with empty pid list to occupy device
This commit is contained in:
parent
5a173b0b21
commit
1dc1423429
@ -472,9 +472,9 @@ bool cStreamdevLiveStreamer::IsReceiving(void) const
|
|||||||
return m_Receiver && m_Receiver->IsAttached();
|
return m_Receiver && m_Receiver->IsAttached();
|
||||||
}
|
}
|
||||||
|
|
||||||
void cStreamdevLiveStreamer::StartReceiver(void)
|
void cStreamdevLiveStreamer::StartReceiver(bool Force)
|
||||||
{
|
{
|
||||||
if (m_NumPids > 0) {
|
if (m_NumPids > 0 || Force) {
|
||||||
Dprintf("Creating Receiver to respect changed pids\n");
|
Dprintf("Creating Receiver to respect changed pids\n");
|
||||||
cReceiver *current = m_Receiver;
|
cReceiver *current = m_Receiver;
|
||||||
cThreadLock ThreadLock(m_Device);
|
cThreadLock ThreadLock(m_Device);
|
||||||
@ -536,6 +536,8 @@ bool cStreamdevLiveStreamer::SetChannel(const int* Apid, const int *Dpid)
|
|||||||
|
|
||||||
case stTSPIDS:
|
case stTSPIDS:
|
||||||
Dprintf("pid streaming mode\n");
|
Dprintf("pid streaming mode\n");
|
||||||
|
// No PIDs requested yet. Start receiver anyway to occupy device
|
||||||
|
StartReceiver(true);
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
@ -32,7 +32,7 @@ private:
|
|||||||
Streamdev::cTSRemux *m_Remux;
|
Streamdev::cTSRemux *m_Remux;
|
||||||
bool m_SwitchLive;
|
bool m_SwitchLive;
|
||||||
|
|
||||||
void StartReceiver(void);
|
void StartReceiver(bool Force = false);
|
||||||
bool HasPid(int Pid);
|
bool HasPid(int Pid);
|
||||||
|
|
||||||
/* Test if device is in use as the transfer mode receiver device
|
/* Test if device is in use as the transfer mode receiver device
|
||||||
|
Loading…
Reference in New Issue
Block a user