Skip to content
This repository
Browse code

ActiveAE: Fix compiler warnings

  • Loading branch information...
commit f468b7bec02fc01556fa8b2711e32a482409457f 1 parent 9c27a02
Peter Frühberger authored FernetMenta committed
2  xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAEResample.cpp
@@ -96,7 +96,7 @@ bool CActiveAEResample::Init(uint64_t dst_chan_layout, int dst_channels, int dst
96 96
     m_dst_chan_layout = 0;
97 97
     for (unsigned int out=0; out<remapLayout->Count(); out++)
98 98
     {
99  
-      m_dst_chan_layout += (1 << out);
  99
+      m_dst_chan_layout += (uint64_t) (1 << out);
100 100
       int idx = GetAVChannelIndex((*remapLayout)[out], m_src_chan_layout);
101 101
       if (idx >= 0)
102 102
       {
2  xbmc/cores/AudioEngine/Engines/ActiveAE/ActiveAESink.cpp
@@ -713,7 +713,7 @@ unsigned int CActiveAESink::OutputSamples(CSampleBuffer* samples)
713 713
   unsigned int frames = samples->pkt->nb_samples;
714 714
   unsigned int maxFrames;
715 715
   int retry = 0;
716  
-  int written = 0;
  716
+  unsigned int written = 0;
717 717
   double sinkDelay = 0.0;
718 718
 
719 719
   switch(m_convertState)

0 notes on commit f468b7b

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