Avoid compile errors due to compatible but not identical function types

(bug reported by Bill Eldridge).
parent 0dcd7184
......@@ -2,7 +2,7 @@
* dvbpsi.cpp: common tools to use the libdvbpsi
*-------------------------------------------------------------------------------
* (c)1999-2002 VideoLAN
* $Id: dvbpsi.cpp,v 1.1 2002/03/21 14:09:19 bozo Exp $
* $Id: dvbpsi.cpp,v 1.2 2002/03/21 19:03:54 bozo Exp $
*
* Authors: Arnaud de Bossoreille de Ribou <bozo@via.ecp.fr>
*
......@@ -349,7 +349,7 @@ C_DvbPsiPatDecoder::C_DvbPsiPatDecoder(C_NetList *pTsProvider,
//------------------------------------------------------------------------------
void C_DvbPsiPatDecoder::Attach()
{
m_hDvbPsi = dvbpsi_AttachPAT(Callback, this);
m_hDvbPsi = dvbpsi_AttachPAT((dvbpsi_pat_callback)Callback, this);
if(!m_hDvbPsi)
throw E_Exception(GEN_ERR,
......@@ -661,7 +661,8 @@ C_DvbPsiPmtDecoder::C_DvbPsiPmtDecoder(u16 iProgramNumber,
//------------------------------------------------------------------------------
void C_DvbPsiPmtDecoder::Attach()
{
m_hDvbPsi = dvbpsi_AttachPMT(m_iProgramNumber, Callback, this);
m_hDvbPsi = dvbpsi_AttachPMT(m_iProgramNumber,
(dvbpsi_pmt_callback)Callback, this);
if(!m_hDvbPsi)
throw E_Exception(GEN_ERR,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment