summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-01-01 09:44:42 +0000
committerphintuka <phintuka>2007-01-01 09:44:42 +0000
commit03258238ba6cd3c0f20f89a985a2742cf2a90fb3 (patch)
tree779be8e92deb6512c433603df25bf80a00e8d90e
parentefeb2cae0ee5352467581e8b436fc19428dd39c0 (diff)
downloadxineliboutput-03258238ba6cd3c0f20f89a985a2742cf2a90fb3.tar.gz
xineliboutput-03258238ba6cd3c0f20f89a985a2742cf2a90fb3.tar.bz2
Clients() returns true if there are any udp/rtp clients
-rw-r--r--tools/udp_pes_scheduler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/udp_pes_scheduler.h b/tools/udp_pes_scheduler.h
index 3e0738ee..84913e6b 100644
--- a/tools/udp_pes_scheduler.h
+++ b/tools/udp_pes_scheduler.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: udp_pes_scheduler.h,v 1.8 2007-01-01 07:50:50 phintuka Exp $
+ * $Id: udp_pes_scheduler.h,v 1.9 2007-01-01 09:44:42 phintuka Exp $
*
*/
@@ -61,6 +61,7 @@ class cUdpScheduler : public cThread
bool AddHandle(cxSocket& s) { return AddHandle(s.handle()); }
void RemoveHandle(cxSocket& s) { RemoveHandle(s.handle()); }
+ bool Clients(void) { return m_Handles[0] >= 0; }
bool Poll(int TimeoutMs, bool Master);
bool Queue(uint64_t StreamPos, const uchar *Data, int Length);
void ReSend(int fd, uint64_t Pos, int Seq1, int Seq2);