-/*\r
- Copyright 2008 Marten Richter\r
- This file is part of VOMP.\r
+/*
+
+ Copyright 2008 Marten Richter
+
+ This file is part of VOMP.
+
VOMP is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.\r
+ (at your option) any later version.
VOMP 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.\r
+ GNU General Public License for more details.
+
You should have received a copy of the GNU General Public License
along with VOMP; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-*/\r
-\r
-#include "tfeed.h"\r
-#include "log.h"\r#include "demuxer.h"\r#include "callback.h"\r
-\r
-TFeed::TFeed(Callback* tcb)\r: cb(*tcb)\r{\r teletextEnabled = 1;\r}\r
-\r
-int TFeed::init()\r{\r return 1;\r}\r
-\r
-int TFeed::shutdown()\r{\r
- // FIXME\r return 1;\r}\r
-\r
-void TFeed::disable()\r
-{\r teletextEnabled = 0;
-}\r
-\r
+ */
+
+
+#include "tfeed.h"
+#include "log.h"
+#include "demuxer.h"
+#include "callback.h"
+
+
+TFeed::TFeed(Callback* tcb)
+:
+cb(*tcb)
+{
+ teletextEnabled = 1;
+}
+
+
+int TFeed::init()
+{
+ return 1;
+}
+
+int TFeed::shutdown()
+{
+ // FIXME
+ return 1;
+}
+
+void TFeed::disable()
+{
+ teletextEnabled = 0;
+}
+
void TFeed::enable()
-{\r teletextEnabled = 1;\r
-}\r
-\r
+{
+ teletextEnabled = 1;
+}
+
int TFeed::start()
{
teletextEnabled = 1;
return threadStart();
-}\r
-\r
+}
+
void TFeed::stop()
{
threadCancel();
-}\r
-\r
+}
+
void TFeed::threadMethod()
{
- bool tlen;\r
- while(1)\r {
+ bool tlen;
+
+ while(1){
threadCheckExit();
- tlen = Demuxer::getInstance()->writeTeletext();\r
+ tlen = Demuxer::getInstance()->writeTeletext();
+
if (tlen)
{
cb.call(this);
}
}
}
-\r
\ No newline at end of file
+