Skip to content
This repository
Browse code

paplayer: fixes for seeking ff/rw

  • Loading branch information...
commit 07091477db4e1b55a60e317dfb3bdd0adb7e3d40 1 parent b81e051
Rainer Hochecker authored September 20, 2013

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

  1. 3  xbmc/cores/paplayer/PAPlayer.cpp
3  xbmc/cores/paplayer/PAPlayer.cpp
@@ -707,6 +707,7 @@ inline bool PAPlayer::ProcessStream(StreamInfo *si, double &delay, double &buffe
707 707
       si->m_framesSent = (int)(si->m_seekFrame - ((float)si->m_startOffset * (float)si->m_sampleRate) / 1000.0f);
708 708
       si->m_seekFrame  = -1;
709 709
       m_playerGUIData.m_time = time; //update for GUI
  710
+      si->m_seekNextAtFrame = 0;
710 711
     }
711 712
     /* if its FF/RW */
712 713
     else
@@ -720,7 +721,7 @@ inline bool PAPlayer::ProcessStream(StreamInfo *si, double &delay, double &buffe
720 721
     if (time < si->m_startOffset || si->m_framesSent < 0)
721 722
     {
722 723
       time = si->m_startOffset;
723  
-      si->m_framesSent      = (int)(si->m_startOffset * si->m_sampleRate / 1000);
  724
+      si->m_framesSent      = 0;
724 725
       si->m_seekNextAtFrame = 0;
725 726
       ToFFRW(1);
726 727
     }

0 notes on commit 0709147

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