btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / mediaplayer / media_node_framework / video / VideoTarget.cpp
blob454ace520f768c7da32bb2059a14575b215f5348
1 /*
2 * Copyright 2000-2008 Ingo Weinhold <ingo_weinhold@gmx.de> All rights reserved.
3 * Distributed under the terms of the MIT license.
4 */
5 #include "VideoTarget.h"
8 VideoTarget::VideoTarget()
9 : fBitmapLock(),
10 fBitmap(NULL)
15 VideoTarget::~VideoTarget()
20 bool
21 VideoTarget::LockBitmap()
23 return fBitmapLock.Lock();
27 void
28 VideoTarget::UnlockBitmap()
30 fBitmapLock.Unlock();
34 void
35 VideoTarget::SetBitmap(const BBitmap* bitmap)
37 LockBitmap();
38 fBitmap = bitmap;
39 UnlockBitmap();
43 const BBitmap*
44 VideoTarget::GetBitmap() const
46 return fBitmap;