opdenkamp/xbmc — Issue #381: Eden-pvr does not compile
Author: hannemann
Created: 2011-12-28 12:18:50+00:00
State: open

Hi,

prototype in DVDPlayer.cpp does not match...

I don't know if it's right this way, but with the patch below Eden-does compile.

diff --git a/xbmc/cores/dvdplayer/DVDPlayer.cpp b/xbmc/cores/dvdplayer/DVDPlayer.cpp
index d095985..237e22f 100644
--- a/xbmc/cores/dvdplayer/DVDPlayer.cpp
+++ b/xbmc/cores/dvdplayer/DVDPlayer.cpp
@@ -138,7 +138,7 @@ bool CSelectionStreams::Get(StreamType type, CDemuxStream::EFlags flag, Selectio
return false;
}

-int CSelectionStreams::IndexOf(StreamType type, int source, int id)
+int CSelectionStreams::IndexOf(StreamType type, int source, int id) const
{
CSingleLock lock(m_section);
int count = -1;
@@ -160,7 +160,7 @@ int CSelectionStreams::IndexOf(StreamType type, int source, int id)
return -1;
}

-int CSelectionStreams::IndexOf(StreamType type, CDVDPlayer& p)
+int CSelectionStreams::IndexOf(StreamType type, CDVDPlayer& p) const
{
if (p.m_pInputStream && p.m_pInputStream->IsStreamType(DVDSTREAM_TYPE_DVD))
{