Call detach only if receiver is attached

This commit is contained in:
Frank Schmirler 2014-08-09 22:59:31 +02:00
parent 888cf0a2f8
commit 83262870d5

View File

@ -608,7 +608,8 @@ void cStreamdevLiveStreamer::Attach(void)
Dprintf("cStreamdevLiveStreamer::Attach()\n");
if (m_Device) {
if (m_Receiver) {
m_Device->Detach(m_Receiver);
if (m_Receiver->IsAttached())
m_Device->Detach(m_Receiver);
m_Device->AttachReceiver(m_Receiver);
}
if (m_PatFilter) {