mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
- detach all receivers before tuning to different transponder. Otherwise ABRT will be sent after tuning, which will destroy the LiveStreamer on the server.
This commit is contained in:
parent
610719625a
commit
06265bab7b
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: device.c,v 1.6 2005/04/24 16:21:59 lordjaxom Exp $
|
* $Id: device.c,v 1.7 2006/09/14 10:43:10 schmirl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "client/device.h"
|
#include "client/device.h"
|
||||||
@ -101,6 +101,7 @@ bool cStreamdevDevice::SetChannelDevice(const cChannel *Channel,
|
|||||||
&& TRANSPONDER(Channel, m_Channel))
|
&& TRANSPONDER(Channel, m_Channel))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
DetachAllReceivers();
|
||||||
m_Channel = Channel;
|
m_Channel = Channel;
|
||||||
bool r = ClientSocket.SetChannelDevice(m_Channel);
|
bool r = ClientSocket.SetChannelDevice(m_Channel);
|
||||||
Dprintf("setchanneldevice r=%d\n", r);
|
Dprintf("setchanneldevice r=%d\n", r);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user