Merge pull request #2703 from ace20022/cores_revised
[vuplus_xbmc] / xbmc / cores / dvdplayer / DVDPlayerAudio.cpp
index 39707d2..3c1e553 100644 (file)
@@ -295,7 +295,7 @@ int CDVDPlayerAudio::DecodeFrame(DVDAudioFrame &audioframe, bool bDropPacket)
       audioframe.size = m_pAudioCodec->GetData(&audioframe.data);
       audioframe.pts  = m_audioClock;
 
-      if (audioframe.size <= 0)
+      if (audioframe.size == 0)
         continue;
 
       audioframe.channel_layout        = m_pAudioCodec->GetChannelMap();
@@ -525,7 +525,6 @@ void CDVDPlayerAudio::Process()
 {
   CLog::Log(LOGNOTICE, "running thread: CDVDPlayerAudio::Process()");
 
-  int result;
   bool packetadded(false);
 
   DVDAudioFrame audioframe;
@@ -534,7 +533,7 @@ void CDVDPlayerAudio::Process()
   while (!m_bStop)
   {
     //Don't let anybody mess with our global variables
-    result = DecodeFrame(audioframe, m_speed > DVD_PLAYSPEED_NORMAL || m_speed < 0 ||
+    int result = DecodeFrame(audioframe, m_speed > DVD_PLAYSPEED_NORMAL || m_speed < 0 ||
                          CAEFactory::IsSuspended()); // blocks if no audio is available, but leaves critical section before doing so
 
     UpdatePlayerInfo();