1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/**
* @file llgstplaythread.cpp
* @author Jacek Antonelli
* @brief GStreamer playback management thread class
*
* $LicenseInfo:firstyear=2009&license=viewergpl$
*
* Copyright (c) 2009, Jacek Antonelli
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 2 of the GNU General Public
* License as published by the Free Software Foundation. Terms of
* the GPL can be found in doc/GPL-license.txt in this distribution, or
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
*
* There are special exceptions to the terms and conditions of the GPL as
* it is applied to this Source Code. View the full text of the exception
* in the file doc/FLOSS-exception.txt in this software distribution, or
* online at http://secondlifegrid.net/programs/open_source/licensing/flossexception
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* $/LicenseInfo$
*/
#include "llgstplaythread.h"
#include "llmediaimplgstreamer.h"
LLGstPlayThread::
LLGstPlayThread( LLMediaImplCommon *impl,
const std::string& name, apr_pool_t *poolp ):
LLThread( name, poolp ),
mMediaImpl( impl )
{
}
LLGstPlayThread::~LLGstPlayThread()
{
}
// virtual
void LLGstPlayThread::run()
{
((LLMediaImplGStreamer *)mMediaImpl)->startPlay();
}
|