Merge pull request #26350 from jjd-uk/estuary_media_align
[xbmc.git] / xbmc / windowing / VideoSync.h
blob8f9e36ab9b9d1fcfac72eb94e4018a21982a81f8
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "threads/Event.h"
13 class CVideoReferenceClock;
15 class CVideoSync
17 public:
18 explicit CVideoSync(CVideoReferenceClock* clock) { m_refClock = clock; }
19 virtual ~CVideoSync() = default;
20 virtual bool Setup() = 0;
21 virtual void Run(CEvent& stop) = 0;
22 virtual void Cleanup() = 0;
23 virtual float GetFps() = 0;
24 virtual void RefreshChanged() {}
26 protected:
27 float m_fps;
28 CVideoReferenceClock* m_refClock;