Skip to content

Commit

Permalink
VDPAU: silence compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fritsch committed Mar 28, 2013
1 parent bd4ab70 commit f5afd76
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VDPAU.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ long CDecoder::Release()
} }
} }
} }
IHardwareDecoder::Release(); return IHardwareDecoder::Release();
} }


long CDecoder::ReleasePicReference() long CDecoder::ReleasePicReference()
Expand Down Expand Up @@ -1406,8 +1406,8 @@ void CMixer::StateMachine(int signal, Protocol *port, Message *msg)


void CMixer::Process() void CMixer::Process()
{ {
Message *msg; Message *msg = NULL;
Protocol *port; Protocol *port = NULL;
bool gotMsg; bool gotMsg;


m_state = M_TOP_UNCONFIGURED; m_state = M_TOP_UNCONFIGURED;
Expand Down Expand Up @@ -1512,7 +1512,6 @@ void CMixer::CreateVdpauMixer()


void CMixer::InitCSCMatrix(int Width) void CMixer::InitCSCMatrix(int Width)
{ {
VdpStatus vdp_st;
m_Procamp.struct_version = VDP_PROCAMP_VERSION; m_Procamp.struct_version = VDP_PROCAMP_VERSION;
m_Procamp.brightness = 0.0; m_Procamp.brightness = 0.0;
m_Procamp.contrast = 1.0; m_Procamp.contrast = 1.0;
Expand Down Expand Up @@ -2646,8 +2645,8 @@ void COutput::StateMachine(int signal, Protocol *port, Message *msg)


void COutput::Process() void COutput::Process()
{ {
Message *msg; Message *msg = NULL;
Protocol *port; Protocol *port = NULL;
bool gotMsg; bool gotMsg;


m_state = O_TOP_UNCONFIGURED; m_state = O_TOP_UNCONFIGURED;
Expand Down Expand Up @@ -2861,7 +2860,6 @@ CVdpauRenderPicture* COutput::ProcessMixerPicture()
pixmap->DVDPic = pic.DVDPic; pixmap->DVDPic = pic.DVDPic;
pixmap->id = i; pixmap->id = i;
m_bufferPool.notVisiblePixmaps.push_back(pixmap); m_bufferPool.notVisiblePixmaps.push_back(pixmap);
VdpStatus vdp_st;
m_config.vdpProcs.vdp_presentation_queue_display(pixmap->vdp_flip_queue, m_config.vdpProcs.vdp_presentation_queue_display(pixmap->vdp_flip_queue,
pixmap->surface,0,0,0); pixmap->surface,0,0,0);
} }
Expand Down Expand Up @@ -3019,7 +3017,7 @@ bool COutput::EnsureBufferPool()
{ {
// create pixmpas // create pixmpas
VdpauBufferPool::Pixmaps pixmap; VdpauBufferPool::Pixmaps pixmap;
int numPixmaps = NUM_RENDER_PICS; unsigned int numPixmaps = NUM_RENDER_PICS;
for (unsigned int i = 0; i < numPixmaps; i++) for (unsigned int i = 0; i < numPixmaps; i++)
{ {
pixmap.pixmap = None; pixmap.pixmap = None;
Expand Down Expand Up @@ -3324,7 +3322,7 @@ void COutput::GLMapSurfaces()
if (m_config.videoSurfaces->size() != m_bufferPool.glVideoSurfaceMap.size()) if (m_config.videoSurfaces->size() != m_bufferPool.glVideoSurfaceMap.size())
{ {
CSingleLock lock(*m_config.videoSurfaceSec); CSingleLock lock(*m_config.videoSurfaceSec);
for (int i = 0; i < m_config.videoSurfaces->size(); i++) for (unsigned int i = 0; i < m_config.videoSurfaces->size(); i++)
{ {
if ((*m_config.videoSurfaces)[i]->surface == VDP_INVALID_HANDLE) if ((*m_config.videoSurfaces)[i]->surface == VDP_INVALID_HANDLE)
continue; continue;
Expand Down Expand Up @@ -3372,7 +3370,7 @@ void COutput::GLMapSurfaces()
if (m_bufferPool.glOutputSurfaceMap.size() != m_bufferPool.numOutputSurfaces) if (m_bufferPool.glOutputSurfaceMap.size() != m_bufferPool.numOutputSurfaces)
{ {
VdpauBufferPool::GLVideoSurface glSurface; VdpauBufferPool::GLVideoSurface glSurface;
for (int i=m_bufferPool.glOutputSurfaceMap.size(); i<m_bufferPool.outputSurfaces.size(); i++) for (unsigned int i = m_bufferPool.glOutputSurfaceMap.size(); i<m_bufferPool.outputSurfaces.size(); i++)
{ {
glSurface.sourceRgb = m_bufferPool.outputSurfaces[i]; glSurface.sourceRgb = m_bufferPool.outputSurfaces[i];
glGenTextures(1, glSurface.texture); glGenTextures(1, glSurface.texture);
Expand Down Expand Up @@ -3496,7 +3494,6 @@ bool COutput::CheckStatus(VdpStatus vdp_st, int line)
bool COutput::CreateGlxContext() bool COutput::CreateGlxContext()
{ {
GLXContext glContext; GLXContext glContext;
Window window;


m_Display = g_Windowing.GetDisplay(); m_Display = g_Windowing.GetDisplay();
glContext = g_Windowing.GetGlxContext(); glContext = g_Windowing.GetGlxContext();
Expand Down

0 comments on commit f5afd76

Please sign in to comment.