Skip to content
This repository
Browse code

[rbp/omxplayer] Fix build error in types for max

It seems there is a compile error when STDINT_H_AVAILABLE is not defined.
See: http://raspbmc.apt-get.eu/downloads/bin/xbmc/nightlies/xbmc-rbp-20130710.log
  • Loading branch information...
commit 6c4593078b11043539d1ed9cf853b2eb378f6e4f 1 parent 60d1fd5
popcornmix authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/cores/omxplayer/OMXAudio.cpp
2  xbmc/cores/omxplayer/OMXAudio.cpp
@@ -473,7 +473,7 @@ bool COMXAudio::Initialize(AEAudioFormat format, std::string& device, OMXClock *
473 473
     return false;
474 474
   }
475 475
 
476  
-  port_param.nBufferCountActual = std::max(port_param.nBufferCountMin, m_BufferLen / port_param.nBufferSize);
  476
+  port_param.nBufferCountActual = std::max((unsigned int)port_param.nBufferCountMin, m_BufferLen / port_param.nBufferSize);
477 477
 
478 478
   omx_err = m_omx_decoder.SetParameter(OMX_IndexParamPortDefinition, &port_param);
479 479
   if(omx_err != OMX_ErrorNone)

0 notes on commit 6c45930

Please sign in to comment.
Something went wrong with that request. Please try again.