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,7 +608,8 @@ void cStreamdevLiveStreamer::Attach(void)
|
|||||||
Dprintf("cStreamdevLiveStreamer::Attach()\n");
|
Dprintf("cStreamdevLiveStreamer::Attach()\n");
|
||||||
if (m_Device) {
|
if (m_Device) {
|
||||||
if (m_Receiver) {
|
if (m_Receiver) {
|
||||||
m_Device->Detach(m_Receiver);
|
if (m_Receiver->IsAttached())
|
||||||
|
m_Device->Detach(m_Receiver);
|
||||||
m_Device->AttachReceiver(m_Receiver);
|
m_Device->AttachReceiver(m_Receiver);
|
||||||
}
|
}
|
||||||
if (m_PatFilter) {
|
if (m_PatFilter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user