mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
client_device-sections-socket.patch by Petri Hintukainen
- Add separate data socket for sections data - Sections data can be received when there is no active live view (-> EPG scans etc. can be executed during replay etc.)
This commit is contained in:
parent
518886b08b
commit
60b89e8646
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: device.c,v 1.11 2007/04/24 10:46:21 schmirl Exp $
|
* $Id: device.c,v 1.12 2007/04/24 11:24:38 schmirl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "client/device.h"
|
#include "client/device.h"
|
||||||
@ -250,10 +250,23 @@ esyslog("cStreamDevice::GetTSPacket: GetChecked: NOTHING (%d)", m_TSFails);
|
|||||||
#if VDRVERSNUM >= 10300
|
#if VDRVERSNUM >= 10300
|
||||||
int cStreamdevDevice::OpenFilter(u_short Pid, u_char Tid, u_char Mask) {
|
int cStreamdevDevice::OpenFilter(u_short Pid, u_char Tid, u_char Mask) {
|
||||||
Dprintf("OpenFilter\n");
|
Dprintf("OpenFilter\n");
|
||||||
if (StreamdevClientSetup.StreamFilters
|
|
||||||
&& ClientSocket.SetFilter(Pid, Tid, Mask, true)) {
|
if (!StreamdevClientSetup.StreamFilters)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
|
||||||
|
if (!ClientSocket.DataSocket(siLiveFilter)) {
|
||||||
|
if (ClientSocket.CreateDataConnection(siLiveFilter)) {
|
||||||
|
m_Filters->SetConnection(*ClientSocket.DataSocket(siLiveFilter));
|
||||||
|
} else {
|
||||||
|
isyslog("cStreamdevDevice::OpenFilter: connect failed: %m");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ClientSocket.SetFilter(Pid, Tid, Mask, true))
|
||||||
return m_Filters->OpenFilter(Pid, Tid, Mask);
|
return m_Filters->OpenFilter(Pid, Tid, Mask);
|
||||||
} else
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user