mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
- fixed null pointer in server.c when cConnection::Accept() failes
This commit is contained in:
parent
7184adef83
commit
459e41e810
1
HISTORY
1
HISTORY
@ -1,6 +1,7 @@
|
|||||||
VDR Plugin 'streamdev' Revision History
|
VDR Plugin 'streamdev' Revision History
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
|
- fixed null pointer in server.c when cConnection::Accept() failes
|
||||||
- consider Pids from channels.conf when HTTP TS streaming. Section filtering
|
- consider Pids from channels.conf when HTTP TS streaming. Section filtering
|
||||||
is an optional feature for VDR devices, so we must not rely on the PMT
|
is an optional feature for VDR devices, so we must not rely on the PMT
|
||||||
alone (pointed out by wirbel@vdrportal)
|
alone (pointed out by wirbel@vdrportal)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: server.c,v 1.8 2008/10/22 11:59:32 schmirl Exp $
|
* $Id: server.c,v 1.9 2008/10/31 12:19:57 schmirl Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "server/server.h"
|
#include "server/server.h"
|
||||||
@ -112,6 +112,8 @@ void cStreamdevServer::Action(void)
|
|||||||
for (cServerComponent *c = m_Servers.First(); c; c = m_Servers.Next(c)){
|
for (cServerComponent *c = m_Servers.First(); c; c = m_Servers.Next(c)){
|
||||||
if (sel && select.CanRead(c->Socket())) {
|
if (sel && select.CanRead(c->Socket())) {
|
||||||
cServerConnection *client = c->Accept();
|
cServerConnection *client = c->Accept();
|
||||||
|
if (!client)
|
||||||
|
continue;
|
||||||
m_Clients.Add(client);
|
m_Clients.Add(client);
|
||||||
|
|
||||||
if (m_Clients.Count() > StreamdevServerSetup.MaxClients) {
|
if (m_Clients.Count() > StreamdevServerSetup.MaxClients) {
|
||||||
|
Loading…
Reference in New Issue
Block a user