btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / mediaplayer / supplier / ProxyVideoSupplier.h
blob0995e97d83588d87da6a55760a46f98b909c94cf
1 /*
2 * Copyright 2008 Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT licensce.
4 */
5 #ifndef PROXY_VIDEO_SUPPLIER_H
6 #define PROXY_VIDEO_SUPPLIER_H
8 #include <Locker.h>
10 #include "VideoSupplier.h"
13 class VideoTrackSupplier;
16 class ProxyVideoSupplier : public VideoSupplier {
17 public:
18 ProxyVideoSupplier();
19 virtual ~ProxyVideoSupplier();
21 virtual status_t FillBuffer(int64 startFrame, void* buffer,
22 const media_raw_video_format& format,
23 bool forceGeneration, bool& wasCached);
25 virtual void DeleteCaches();
27 void SetSupplier(VideoTrackSupplier* supplier);
29 private:
30 BLocker fSupplierLock;
32 VideoTrackSupplier* fSupplier;
35 #endif // PROXY_VIDEO_SUPPLIER_H