diff options
author | xhaggi <sascha.woo@gmail.com> | 2015-02-05 21:22:05 +0100 |
---|---|---|
committer | xhaggi <sascha.woo@gmail.com> | 2015-02-08 17:46:22 +0100 |
commit | 99cd49204a42580cdf3ac2abbe8d21aeddfec493 (patch) | |
tree | d7cd9a434a4dde5183a9fbdb01ef68ce1b8620fb | |
parent | face9ead060c964f0bae4c3b6179ea36d98708a5 (diff) |
[seek] use SeekHandler for ACTION_STEP_FORWARD and ACTION_STEP_BACK
-rw-r--r-- | xbmc/Application.h | 2 | ||||
-rw-r--r-- | xbmc/video/windows/GUIWindowFullScreen.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/xbmc/Application.h b/xbmc/Application.h index 59f917fa13..5ac307dc84 100644 --- a/xbmc/Application.h +++ b/xbmc/Application.h @@ -372,7 +372,7 @@ public: \return a constant pointer to the seek handler. \sa CSeekHandler */ - const CSeekHandler *GetSeekHandler() const { return m_seekHandler; }; + CSeekHandler* const GetSeekHandler() const { return m_seekHandler; }; bool SwitchToFullScreen(); diff --git a/xbmc/video/windows/GUIWindowFullScreen.cpp b/xbmc/video/windows/GUIWindowFullScreen.cpp index 88e7637e71..4bc6b97294 100644 --- a/xbmc/video/windows/GUIWindowFullScreen.cpp +++ b/xbmc/video/windows/GUIWindowFullScreen.cpp @@ -56,6 +56,7 @@ #include "windowing/WindowingFactory.h" #include "cores/IPlayer.h" #include "filesystem/File.h" +#include "utils/SeekHandler.h" #include <stdio.h> #include <algorithm> @@ -160,14 +161,14 @@ bool CGUIWindowFullScreen::OnAction(const CAction &action) if (m_timeCodePosition > 0) SeekToTimeCodeStamp(SEEK_RELATIVE, SEEK_BACKWARD); else - g_application.m_pPlayer->Seek(false, false); + g_application.GetSeekHandler()->Seek(false, action.GetAmount(), action.GetRepeat()); return true; case ACTION_STEP_FORWARD: if (m_timeCodePosition > 0) SeekToTimeCodeStamp(SEEK_RELATIVE, SEEK_FORWARD); else - g_application.m_pPlayer->Seek(true, false); + g_application.GetSeekHandler()->Seek(true, action.GetAmount(), action.GetRepeat()); return true; case ACTION_BIG_STEP_BACK: |