diff options
author | phintuka <phintuka> | 2009-03-20 07:20:53 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2009-03-20 07:20:53 +0000 |
commit | 766f89c9b5cd86355f14ec5cda7c0ee970ff0e05 (patch) | |
tree | 52e87fb05b9c7e7ba2b6ede590f7178f3b02909d | |
parent | b6ad4c0499f910be0cffe8c787e1e1b1768af90a (diff) | |
download | xineliboutput-766f89c9b5cd86355f14ec5cda7c0ee970ff0e05.tar.gz xineliboutput-766f89c9b5cd86355f14ec5cda7c0ee970ff0e05.tar.bz2 |
Fixed pointer type
(Thanks to alexw)
-rw-r--r-- | frontend_svr.c | 8 | ||||
-rw-r--r-- | frontend_svr.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/frontend_svr.c b/frontend_svr.c index f4b3e009..adffba85 100644 --- a/frontend_svr.c +++ b/frontend_svr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_svr.c,v 1.69 2009-03-19 08:39:12 phintuka Exp $ + * $Id: frontend_svr.c,v 1.70 2009-03-20 07:20:53 phintuka Exp $ * */ @@ -444,7 +444,7 @@ int64_t cXinelibServer::GetSTC(void) return m_StcFuture->Value() /*+ (delay.Elapsed()*90000/2*/; } -void cXinelibServer::SetHeader(uint8_t *Data, int Length, bool Reset) +void cXinelibServer::SetHeader(const uchar *Data, int Length, bool Reset) { LOCK_THREAD; // Lock control thread out @@ -454,10 +454,10 @@ void cXinelibServer::SetHeader(uint8_t *Data, int Length, bool Reset) if (m_HeaderSize < m_HeaderLength + Length) { if (!m_Header) { m_HeaderSize = Length; - m_Header = (uint8_t*)malloc(m_HeaderSize); + m_Header = (uchar*)malloc(m_HeaderSize); } else { m_HeaderSize = m_HeaderLength + Length; - m_Header = (uint8_t*)realloc(m_Header, m_HeaderSize); + m_Header = (uchar*)realloc(m_Header, m_HeaderSize); } } diff --git a/frontend_svr.h b/frontend_svr.h index c459e5be..73117944 100644 --- a/frontend_svr.h +++ b/frontend_svr.h @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_svr.h,v 1.22 2009-03-19 08:39:12 phintuka Exp $ + * $Id: frontend_svr.h,v 1.23 2009-03-20 07:20:53 phintuka Exp $ * */ @@ -133,11 +133,11 @@ protected: bool HasClients(void); // Cache current PAT/PMT for new clients - uint8_t *m_Header; + uchar *m_Header; size_t m_HeaderLength; // bytes used size_t m_HeaderSize; // bytes allocated public: - void SetHeader(uint8_t *Data, int Length, bool Reset = false); + void SetHeader(const uchar *Data, int Length, bool Reset = false); }; #endif // __XINELIB_FRONTEND_SVR_H |