mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
Call detach only if receiver is attached
This commit is contained in:
parent
888cf0a2f8
commit
83262870d5
@ -608,6 +608,7 @@ void cStreamdevLiveStreamer::Attach(void)
|
||||
Dprintf("cStreamdevLiveStreamer::Attach()\n");
|
||||
if (m_Device) {
|
||||
if (m_Receiver) {
|
||||
if (m_Receiver->IsAttached())
|
||||
m_Device->Detach(m_Receiver);
|
||||
m_Device->AttachReceiver(m_Receiver);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user