2 Copyright 2008 Marten Richter
\r\r
3 This file is part of VOMP.
\r\r
4 VOMP is free software; you can redistribute it and/or modify
\r
5 it under the terms of the GNU General Public License as published by
\r
6 the Free Software Foundation; either version 2 of the License, or
\r
7 (at your option) any later version.
\r\r
8 VOMP is distributed in the hope that it will be useful,
\r
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
11 GNU General Public License for more details.
\r\r
12 You should have received a copy of the GNU General Public License
\r
13 along with VOMP; if not, write to the Free Software
\r
14 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
17 #include "tfeed.h"
\r\r
18 #include "log.h"
\r#include "demuxer.h"
\r#include "callback.h"
\r\r
20 TFeed::TFeed(Callback* tcb)
\r: cb(*tcb)
\r{
\r teletextEnabled = 1;
\r}
\r\r
22 int TFeed::init()
\r{
\r return 1;
\r}
\r\r
24 int TFeed::shutdown()
\r{
\r\r
25 // FIXME
\r return 1;
\r}
\r\r
27 void TFeed::disable()
\r\r
28 {
\r teletextEnabled = 0;
\r
31 void TFeed::enable()
\r
32 {
\r teletextEnabled = 1;
\r\r
37 teletextEnabled = 1;
\r
38 return threadStart();
\r
46 void TFeed::threadMethod()
\r
51 tlen = Demuxer::getInstance()->writeTeletext();
\r\r
55 // Log::getInstance()->log("Tfeed", Log::DEBUG, "written");
\r
60 MILLISLEEP(20); //Performance Issue Marten
\r