Port from git

This commit is contained in:
emb
2015-01-01 10:14:26 -06:00
commit 93094bcbed
772 changed files with 621608 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
/* This file is subject to the terms and conditions defined in
* file 'LICENSE.txt', which is part of this source code package.
*/
#include "VideoFactory.h"
#include "IVideo.h"
#include "GStreamerVideo.h"
bool VideoFactory::Enabled = true;
int VideoFactory::NumLoops = 0;
IVideo *VideoFactory::CreateVideo()
{
IVideo *instance = NULL;
if(Enabled)
{
instance = new GStreamerVideo();
instance->Initialize();
((GStreamerVideo *)(instance))->SetNumLoops(NumLoops);
}
return instance;
}
void VideoFactory::SetEnabled(bool enabled)
{
Enabled = enabled;
}
void VideoFactory::SetNumLoops(int numLoops)
{
NumLoops = numLoops;
}