[omxplayer] Fix infinite loop if (next) bluray title can not be played
authorpopcornmix <popcornmix@gmail.com>
Mon, 7 Apr 2014 17:31:01 +0000 (18:31 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 7 Apr 2014 17:41:35 +0000 (18:41 +0100)
xbmc/cores/omxplayer/OMXPlayer.cpp

index 50edf56..1270b16 100644 (file)
@@ -3682,6 +3682,12 @@ int COMXPlayer::OnDVDNavResult(void* pData, int iMessage)
                   m_dvd.iDVDStillTime, time / 1000);
       }
     }
+    else if (iMessage == 6)
+    {
+      m_dvd.state = DVDSTATE_NORMAL;
+      CLog::Log(LOGDEBUG, "COMXPlayer::OnDVDNavResult - libbluray read error (DVDSTATE_NORMAL)");
+      CGUIDialogKaiToast::QueueNotification(g_localizeStrings.Get(25008), g_localizeStrings.Get(25009));
+    }
 
     return 0;
   }