mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
fixed regression: no receiver created for ES/PS/PES
(reported by Gavin Hamill)
This commit is contained in:
@@ -442,12 +442,13 @@ void cStreamdevLiveStreamer::SetPriority(int Priority)
|
||||
|
||||
void cStreamdevLiveStreamer::StartReceiver(void)
|
||||
{
|
||||
if (m_Device != NULL && m_NumPids > 0 && IsRunning()) {
|
||||
if (m_NumPids > 0) {
|
||||
Dprintf("Creating Receiver to respect changed pids\n");
|
||||
cReceiver *current = m_Receiver;
|
||||
m_Receiver = new cStreamdevLiveReceiver(this, m_Channel->GetChannelID(), m_Priority, m_Pids);
|
||||
cThreadLock ThreadLock(m_Device);
|
||||
Attach();
|
||||
if (IsRunning())
|
||||
Attach();
|
||||
delete current;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user