gui: always hide seek dialog when player signals display after seek
authorJoakim Plate <elupus@ecce.se>
Sun, 21 Oct 2012 15:38:48 +0000 (17:38 +0200)
committerJoakim Plate <elupus@ecce.se>
Sun, 21 Oct 2012 15:41:11 +0000 (17:41 +0200)
This fixes stuck seek bar with paplayer

xbmc/GUIInfoManager.cpp
xbmc/cores/dvdplayer/DVDPlayer.cpp

index fb9b2f7..148a0bb 100644 (file)
@@ -4056,6 +4056,7 @@ CStdString CGUIInfoManager::GetBuild()
 
 void CGUIInfoManager::SetDisplayAfterSeek(unsigned int timeOut, int seekOffset)
 {
+  g_infoManager.m_performingSeek = false;
   if (timeOut>0)
   {
     m_AfterSeekTimeout = CTimeUtils::GetFrameTime() +  timeOut;
index 025f463..c717806 100644 (file)
@@ -2044,10 +2044,7 @@ void CDVDPlayer::HandleMessages()
 
         // set flag to indicate we have finished a seeking request
         if(!msg.GetTrickPlay())
-        {
-          g_infoManager.m_performingSeek = false;
           g_infoManager.SetDisplayAfterSeek();
-        }
 
         // dvd's will issue a HOP_CHANNEL that we need to skip
         if(m_pInputStream->IsStreamType(DVDSTREAM_TYPE_DVD))