diff options
author | phintuka <phintuka> | 2006-08-21 00:08:44 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-08-21 00:08:44 +0000 |
commit | e89f3f27723bc09120bb1e7e17bf1712778c6a91 (patch) | |
tree | 21e46e1f55b8ffd0b974d916537c9b2a9e84b6c8 | |
parent | 1baedaf058abc203c831200af7d425d00ba6f91f (diff) | |
download | xineliboutput-e89f3f27723bc09120bb1e7e17bf1712778c6a91.tar.gz xineliboutput-e89f3f27723bc09120bb1e7e17bf1712778c6a91.tar.bz2 |
Replaced _syscall0(pid_t, gettid) with getpid as the original one does not
work with latest kernel headers.
-rw-r--r-- | tools/udp_pes_scheduler.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/udp_pes_scheduler.c b/tools/udp_pes_scheduler.c index 30d7cee4..ebcf5b18 100644 --- a/tools/udp_pes_scheduler.c +++ b/tools/udp_pes_scheduler.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: udp_pes_scheduler.c,v 1.11 2006-08-18 02:20:38 phintuka Exp $ + * $Id: udp_pes_scheduler.c,v 1.12 2006-08-21 00:08:44 phintuka Exp $ * */ @@ -35,8 +35,6 @@ #include <sys/types.h> #include <linux/unistd.h> #include <errno.h> -_syscall0(pid_t, gettid) - //----------------------- cTimePts ------------------------------------------ @@ -134,7 +132,7 @@ cUdpScheduler::cUdpScheduler() last_delay_time = 0; - srandom(time(NULL) ^ gettid()); + srandom(time(NULL) ^ getpid()); m_ssrc = random(); LOGDBG("RTP SSRC: 0x%08x", m_ssrc); m_LastRtcpTime = 0; |