1
0
mirror of https://github.com/rofafor/vdr-plugin-iptv.git synced 2023-10-10 11:37:03 +00:00

Compare commits

...

9 Commits

Author SHA1 Message Date
Rolf Ahrenberg
04c194ffc7 Incremented the version number. 2008-10-12 23:08:41 +03:00
Rolf Ahrenberg
40125dd9bb Updated HISTORY for the release. 2008-10-12 22:44:17 +03:00
Rolf Ahrenberg
c5a7598544 Optimized streamer thread termination. 2008-09-10 17:22:36 +03:00
Rolf Ahrenberg
4e8e26a4b3 Updated iptvstream.sh script to support optional video resolution settings. 2008-09-01 14:28:05 +03:00
Rolf Ahrenberg
9ec10262d4 Fifo shouldn't be opened as write-only, if there're no readers. 2008-08-31 12:56:22 +03:00
Rolf Ahrenberg
501701e3d3 Added .gitignore. 2008-08-29 17:38:46 +03:00
Rolf Ahrenberg
53b5644973 Migration changes for git and UTF-8.
Updated contact information.
2008-08-23 08:15:30 +03:00
Rolf Ahrenberg
17b4709c30 Tweaked pid scanner parameters for HD broadcasts. 2008-08-06 08:05:52 +00:00
Rolf Ahrenberg
2bff3d0f8f Updated Italian translation. 2008-07-14 10:13:48 +00:00
38 changed files with 65 additions and 67 deletions

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
.dependencies
*.o
*.so
*~
po/*.pot
po/*.mo

11
HISTORY
View File

@@ -43,7 +43,7 @@ VDR Plugin 'iptv' Revision History
- Updated for vdr-1.5.15.
- Replaced asprintf with cString.
- Updated French translation (Thanks to Micha<EFBFBD>l Nival).
- Updated French translation (Thanks to Michaël Nival).
- Modified VDR locale support detection.
- Added preliminary automatic Pid scanning functionality.
- Modified channels.conf format to enable/disable channel
@@ -63,3 +63,12 @@ VDR Plugin 'iptv' Revision History
- Updated vlc2iptv script for new channels.conf format.
- Added pluginparam patch for vdr-1.7.0.
- Added new example scripts from VDR-WIKI.
2008-10-12: Version 0.2.2
- Converted HISTORY and fi_FI.po to UTF-8.
- Updated Italian translation (Thanks to Diego Pierotto).
- Tweaked pid scanner parameters for HD broadcasts.
- Fixed opening of fifo tap.
- Updated iptvstream.sh script to support optional video resolution settings.
- Optimized streamer thread termination.

View File

@@ -120,7 +120,7 @@ dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@mkdir $(TMPDIR)/$(ARCHIVE)
@cp -a * $(TMPDIR)/$(ARCHIVE)
@tar czf $(PACKAGE).tgz -C $(TMPDIR) --exclude CVS $(ARCHIVE)
@tar czf $(PACKAGE).tgz -C $(TMPDIR) $(ARCHIVE)
@-rm -rf $(TMPDIR)/$(ARCHIVE)
@echo Distribution package created as $(PACKAGE).tgz

4
README
View File

@@ -3,8 +3,8 @@ This is an IPTV plugin for the Video Disk Recorder (VDR).
Written by: Rolf Ahrenberg
< R o l f . A h r e n b e r g @ s c i . f i >
Antti Sepp<EFBFBD>l<EFBFBD>
<a j h s e p p a @ n i k s u l a . h u t . f i >
Antti Seppälä
< a . s e p p a l a @ g m a i l . c o m >
Project's homepage: http://www.saunalahti.fi/~rahrenbe/vdr/iptv/

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: common.c,v 1.10 2008/01/30 21:57:33 rahrenbe Exp $
*/
#include <vdr/tools.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: common.h,v 1.20 2008/02/17 19:18:47 rahrenbe Exp $
*/
#ifndef __IPTV_COMMON_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: config.c,v 1.21 2008/02/01 21:54:24 rahrenbe Exp $
*/
#include "config.h"

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: config.h,v 1.20 2008/02/01 21:54:24 rahrenbe Exp $
*/
#ifndef __IPTV_CONFIG_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: device.c,v 1.87 2008/04/02 22:55:04 rahrenbe Exp $
*/
#include "config.h"
@@ -24,7 +23,8 @@ cIptvDevice::cIptvDevice(unsigned int Index)
pidScanEnabled(false),
mutex()
{
debug("cIptvDevice::cIptvDevice(%d)\n", deviceIndex);
//debug("cIptvDevice::cIptvDevice(%d)\n", deviceIndex);
isyslog("creating IPTV device %d (CardIndex=%d)", deviceIndex, CardIndex());
tsBuffer = new cRingBufferLinear(MEGABYTE(IptvConfig.GetTsBufferSize()),
(TS_SIZE * IptvConfig.GetReadBufferTsCount()),
false, "IPTV");
@@ -49,7 +49,7 @@ cIptvDevice::cIptvDevice(unsigned int Index)
cString filename = cString::sprintf(IPTV_DVR_FILENAME, deviceIndex);
stat(filename, &sb);
if (S_ISFIFO(sb.st_mode)) {
dvrFd = open(filename, O_WRONLY | O_NONBLOCK);
dvrFd = open(filename, O_RDWR | O_NONBLOCK);
if (dvrFd >= 0)
dsyslog("IPTV device %d redirecting input stream to '%s'", deviceIndex, *filename);
}

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: device.h,v 1.39 2008/02/17 19:18:47 rahrenbe Exp $
*/
#ifndef __IPTV_DEVICE_H

3
iptv.c
View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: iptv.c,v 1.39 2008/03/30 20:25:12 rahrenbe Exp $
*/
#include <getopt.h>
@@ -21,7 +20,7 @@
#error "VDR-1.6.0 API version or greater is required!"
#endif
static const char VERSION[] = "0.2.1";
static const char VERSION[] = "0.2.2";
static const char DESCRIPTION[] = trNOOP("Experience the IPTV");
class cPluginIptv : public cPlugin {

View File

@@ -3,7 +3,7 @@
# iptvstream.sh can be used by the VDR iptv plugin to transcode external
# sources
#
# (C) 2007 Rolf Ahrenberg, Antti Sepp<EFBFBD>l<EFBFBD>
# (C) 2007 Rolf Ahrenberg, Antti Seppälä
#
# iptvstream.sh is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -31,8 +31,10 @@ PARAMETER=${1}
# Iptv plugin listens this port
PORT=${2}
# Default bitrates for stream transcoding
# Default settings for stream transcoding
VCODEC=mp2v
VBITRATE=2400
ACODEC=mpga
ABITRATE=320
# There is a way to specify multiple URLs in the same script. The selection is
@@ -40,6 +42,8 @@ ABITRATE=320
case ${PARAMETER} in
1)
URL=""
WIDTH=720
HEIGHT=576
;;
2)
URL=""
@@ -57,13 +61,19 @@ if [ -z "${URL}" ]; then
exit 1;
fi
# Create transcoding options
TRANSCODE_OPTS="vcodec=${VCODEC},acodec=${ACODEC},vb=${VBITRATE},ab=${ABITRATE}"
if [ -n "${WIDTH}" -a -n "${HEIGHT}" ] ; then
TRANSCODE_OPTS="${TRANSCODE_OPTS},width=${WIDTH},height=${HEIGHT}"
fi
# Create unique pids for the stream
let VPID=${PARAMETER}+1
let APID=${PARAMETER}+2
let SPID=${PARAMETER}+3
# Capture VLC pid for further management in IPTV plugin
vlc "${URL}" --sout "#transcode{vcodec=mp2v,acodec=mpga,vb=${VBITRATE},ab=${ABITRATE}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" --intf dummy &
vlc "${URL}" --sout "#transcode{${TRANSCODE_OPTS}}:standard{access=udp,mux=ts{pid-video=${VPID},pid-audio=${APID},pid-spu=${SPID}},dst=127.0.0.1:${PORT}}" --intf dummy &
PID=${!}

View File

@@ -2,7 +2,7 @@
#
# vlc2iptv is used by the VDR iptv plugin to transcode external sources
#
# (C) 2007 Rolf Ahrenberg, Antti Sepp<EFBFBD>l<EFBFBD>
# (C) 2007 Rolf Ahrenberg, Antti Seppälä
# (C) 2007 Tobias Grimm
#
# vlc2iptv is free software; you can redistribute it and/or modify

View File

@@ -3,16 +3,15 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: pidscanner.c,v 1.7 2008/04/02 22:55:04 rahrenbe Exp $
*/
#include "common.h"
#include "pidscanner.h"
#define PIDSCANNER_TIMEOUT_IN_MS 15000 /* 15s timeout for detection */
#define PIDSCANNER_APID_COUNT 10 /* minimum count of audio pid samples for pid detection */
#define PIDSCANNER_VPID_COUNT 10 /* minimum count of video pid samples for pid detection */
#define PIDSCANNER_PID_DELTA_COUNT 50 /* minimum count of pid samples for audio/video only pid detection */
#define PIDSCANNER_APID_COUNT 5 /* minimum count of audio pid samples for pid detection */
#define PIDSCANNER_VPID_COUNT 5 /* minimum count of video pid samples for pid detection */
#define PIDSCANNER_PID_DELTA_COUNT 100 /* minimum count of pid samples for audio/video only pid detection */
cPidScanner::cPidScanner(void)
: timeout(0),

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: pidscanner.h,v 1.3 2008/02/02 20:51:47 rahrenbe Exp $
*/
#ifndef __PIDSCANNER_H

View File

@@ -12,7 +12,7 @@ msgstr ""
"Last-Translator: Rolf Ahrenberg\n"
"Language-Team: <vdr@linuxtv.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
msgid "PAT (0x00)"
@@ -79,13 +79,13 @@ msgid "Nid"
msgstr "Verkko-ID"
msgid "Tid"
msgstr "L<EFBFBD>hete-ID"
msgstr "Lähete-ID"
msgid "Rid"
msgstr "Radio-ID"
msgid "Cannot find unique channel settings!"
msgstr "Yksil<EFBFBD>llisi<EFBFBD> kanava-asetuksia ei l<EFBFBD>ydet<EFBFBD>!"
msgstr "Yksilöllisiä kanava-asetuksia ei löydetä!"
msgid "IPTV Channels"
msgstr "IPTV-kanavat"
@@ -116,21 +116,21 @@ msgid ""
"\n"
"Smaller sizes help memory consumption, but are more prone to buffer overflows."
msgstr ""
"M<EFBFBD><EFBFBD>rit<EFBFBD> rengaspuskurin koko TS-l<EFBFBD>hetteelle megatavuina.\n"
"Määritä rengaspuskurin koko TS-lähetteelle megatavuina.\n"
"\n"
"Pienempi rengaspuskuri v<EFBFBD>hent<EFBFBD><EFBFBD> muistinkulutusta, mutta on virhealttiimpi puskurin ylivuodolle."
"Pienempi rengaspuskuri vähentää muistinkulutusta, mutta on virhealttiimpi puskurin ylivuodolle."
msgid "TS buffer prefill ratio [%]"
msgstr "TS-puskurin esit<EFBFBD>ytt<EFBFBD>aste [%]"
msgstr "TS-puskurin esitäyttöaste [%]"
msgid ""
"Define a prefill ratio of the ringbuffer for transport streams before data is transferred to VDR.\n"
"\n"
"This is useful if streaming media over a slow or unreliable connection."
msgstr ""
"M<EFBFBD><EFBFBD>rittele TS-rengaspuskurin esit<EFBFBD>ytt<EFBFBD>aste, jonka j<EFBFBD>lkeen l<EFBFBD>hetett<EFBFBD> aletaan siirt<EFBFBD>m<EFBFBD><EFBFBD>n eteenp<EFBFBD>in VDR:lle.\n"
"Määrittele TS-rengaspuskurin esitäyttöaste, jonka jälkeen lähetettä aletaan siirtämään eteenpäin VDR:lle.\n"
"\n"
"Puskurin esit<EFBFBD>ytt<EFBFBD> parantaa suoratoistoa hitailla ja ep<EFBFBD>luotettavilla yhteyksill<EFBFBD>."
"Puskurin esitäyttö parantaa suoratoistoa hitailla ja epäluotettavilla yhteyksillä."
msgid "EXT protocol base port"
msgstr "EXT-protokollan perusportti"
@@ -140,12 +140,12 @@ msgid ""
"\n"
"The port range is defined by the number of IPTV devices. This setting sets the port which is listened for connections from external applications when using the EXT protocol."
msgstr ""
"M<EFBFBD><EFBFBD>rittele EXT-protokollan k<EFBFBD>ytt<EFBFBD>m<EFBFBD> perusportti.\n"
"Määrittele EXT-protokollan käyttämä perusportti.\n"
"\n"
"Porttiavaruuden koko m<EFBFBD><EFBFBD>r<EFBFBD>ytyy k<EFBFBD>ytettyjen IPTV-laitteiden mukaan. Laajennos lukee EXT-protokollan yhteydess<EFBFBD> perusportista dataa, jota ulkoiset ohjelmistot tarjoavat."
"Porttiavaruuden koko määräytyy käytettyjen IPTV-laitteiden mukaan. Laajennos lukee EXT-protokollan yhteydessä perusportista dataa, jota ulkoiset ohjelmistot tarjoavat."
msgid "Use section filtering"
msgstr "K<EFBFBD>yt<EFBFBD> sektioiden suodatusta"
msgstr "Käytä sektioiden suodatusta"
msgid ""
"Define whether the section filtering shall be used.\n"
@@ -153,29 +153,29 @@ msgid ""
"Section filtering means that IPTV plugin tries to parse and provide VDR with secondary data about the currently active stream. VDR can then use this data for providing various functionalities such as automatic pid change detection and EPG etc.\n"
"Enabling this feature does not affect streams that do not contain section data."
msgstr ""
"M<EFBFBD><EFBFBD>rittele suodatuksen k<EFBFBD>ytt<EFBFBD> sektioille.\n"
"Määrittele suodatuksen käyttö sektioille.\n"
"\n"
"IPTV-laajennos voi suodattaa l<EFBFBD>hetteest<EFBFBD> VDR:lle tarjottavia sektioita, joita k<EFBFBD>ytet<EFBFBD><EFBFBD>n esim. ohjelmaoppaan ja ohjelmatunnisteiden (PID) p<EFBFBD>ivitt<EFBFBD>miseen.\n"
"Toiminto ei vaikuta l<EFBFBD>hetteeseen, jossa ei ole sektioita."
"IPTV-laajennos voi suodattaa lähetteestä VDR:lle tarjottavia sektioita, joita käytetään esim. ohjelmaoppaan ja ohjelmatunnisteiden (PID) päivittämiseen.\n"
"Toiminto ei vaikuta lähetteeseen, jossa ei ole sektioita."
msgid "Disable filters"
msgstr "Poista suodattimia k<EFBFBD>yt<EFBFBD>st<EFBFBD>"
msgstr "Poista suodattimia käytöstä"
msgid ""
"Define number of section filters to be disabled.\n"
"\n"
"Certain section filters might cause some unwanted behaviour to VDR such as time being falsely synchronized. By black-listing the filters here useful section data can be left intact for VDR to process."
msgstr ""
"M<EFBFBD><EFBFBD>rittele k<EFBFBD>yt<EFBFBD>st<EFBFBD> poistettavien suodattimien lukum<EFBFBD><EFBFBD>r<EFBFBD> sektioille.\n"
"Määrittele käytöstä poistettavien suodattimien lukumäärä sektioille.\n"
"\n"
"Tietyt sektiot saattavat aiheuttaa virheellist<EFBFBD> toimintaa VDR:ss<EFBFBD>, esimerkiksi asettavat v<EFBFBD><EFBFBD>r<EFBFBD>n kellonajan, ja n<EFBFBD>iden poistaminen auttaa VDR:<EFBFBD><EFBFBD> toimimaan kunnolla j<EFBFBD>ljelle j<EFBFBD><EFBFBD>vien sektioiden kanssa."
"Tietyt sektiot saattavat aiheuttaa virheellistä toimintaa VDR:ssä, esimerkiksi asettavat väärän kellonajan, ja näiden poistaminen auttaa VDR:ää toimimaan kunnolla jäljelle jäävien sektioiden kanssa."
#. TRANSLATORS: note the singular!
msgid "Disable filter"
msgstr "Poista suodatin k<EFBFBD>yt<EFBFBD>st<EFBFBD>"
msgstr "Poista suodatin käytöstä"
msgid "Define an ill-behaving filter to be blacklisted."
msgstr "M<EFBFBD><EFBFBD>rittele k<EFBFBD>yt<EFBFBD>st<EFBFBD> poistettava suodatin, joka lis<EFBFBD>t<EFBFBD><EFBFBD>n mustalle listalle."
msgstr "Määrittele käytöstä poistettava suodatin, joka lisätään mustalle listalle."
msgid "Help"
msgstr "Opaste"

View File

@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: iptv 0.2.0\n"
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
"POT-Creation-Date: 2008-02-01 23:43+0200\n"
"PO-Revision-Date: 2008-03-30 05:26+0100\n"
"PO-Revision-Date: 2008-07-13 03:28+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: Italian\n"
"MIME-Version: 1.0\n"
@@ -122,7 +122,7 @@ msgstr ""
"Dimensioni più piccole aiutano il consumo di memoria, ma sono più inclini a generare buffer overflows."
msgid "TS buffer prefill ratio [%]"
msgstr "Percentuale riempimento buffer TS [%]"
msgstr "Riempimento buffer TS [%]"
msgid ""
"Define a prefill ratio of the ringbuffer for transport streams before data is transferred to VDR.\n"

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolext.c,v 1.24 2008/02/17 19:18:47 rahrenbe Exp $
*/
#include <sys/wait.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolext.h,v 1.10 2008/02/17 19:18:47 rahrenbe Exp $
*/
#ifndef __IPTV_PROTOCOLEXT_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolfile.c,v 1.15 2008/01/04 23:36:37 ajhseppa Exp $
*/
#include <fcntl.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolfile.h,v 1.8 2008/01/04 23:36:37 ajhseppa Exp $
*/
#ifndef __IPTV_PROTOCOLFILE_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolhttp.c,v 1.25 2008/04/02 22:55:04 rahrenbe Exp $
*/
#include <sys/types.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolhttp.h,v 1.12 2008/01/04 23:36:37 ajhseppa Exp $
*/
#ifndef __IPTV_PROTOCOLHTTP_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocolif.h,v 1.8 2008/01/30 21:57:33 rahrenbe Exp $
*/
#ifndef __IPTV_PROTOCOLIF_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocoludp.c,v 1.22 2008/01/04 23:36:37 ajhseppa Exp $
*/
#include <sys/types.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: protocoludp.h,v 1.13 2008/01/04 23:36:37 ajhseppa Exp $
*/
#ifndef __IPTV_PROTOCOLUDP_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: sectionfilter.c,v 1.19 2008/02/17 19:18:47 rahrenbe Exp $
*/
#include "sectionfilter.h"

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: sectionfilter.h,v 1.8 2008/02/17 19:18:47 rahrenbe Exp $
*/
#ifndef __IPTV_SECTIONFILTER_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: setup.c,v 1.58 2008/04/02 20:22:48 rahrenbe Exp $
*/
#include <string.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: setup.h,v 1.21 2008/02/19 22:29:02 rahrenbe Exp $
*/
#ifndef __IPTV_SETUP_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: sidscanner.c,v 1.1 2007/10/01 18:14:57 rahrenbe Exp $
*/
#include <libsi/section.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: sidscanner.h,v 1.1 2007/10/01 18:14:57 rahrenbe Exp $
*/
#ifndef __SIDSCANNER_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: socket.c,v 1.7 2008/01/30 21:57:33 rahrenbe Exp $
*/
#include <sys/types.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: socket.h,v 1.3 2007/10/21 19:32:15 ajhseppa Exp $
*/
#ifndef __IPTV_SOCKET_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: statistics.c,v 1.22 2008/01/19 21:08:03 ajhseppa Exp $
*/
#include <limits.h>

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: statistics.h,v 1.11 2008/01/19 21:08:03 ajhseppa Exp $
*/
#ifndef __IPTV_STATISTICS_H

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: streamer.c,v 1.33 2008/04/04 20:55:44 rahrenbe Exp $
*/
#include <vdr/thread.h>
@@ -46,11 +45,11 @@ void cIptvStreamer::Action(void)
}
else {
mutex->Unlock();
cCondWait::SleepMs(100); // to reduce cpu load
sleep.Wait(100); // to reduce cpu load
}
}
else
cCondWait::SleepMs(100); // and avoid busy loop
sleep.Wait(100); // and avoid busy loop
}
debug("cIptvStreamer::Action(): Exiting\n");
}
@@ -70,6 +69,7 @@ bool cIptvStreamer::Close(void)
{
debug("cIptvStreamer::Close()\n");
// Stop thread
sleep.Signal();
if (Running())
Cancel(3);
// Close the protocol. A mutex should be taken here to avoid a race condition

View File

@@ -3,7 +3,6 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: streamer.h,v 1.16 2008/04/04 20:55:44 rahrenbe Exp $
*/
#ifndef __IPTV_STREAMER_H
@@ -21,6 +20,7 @@ class cIptvStreamer : public cThread, public cIptvStreamerStatistics {
private:
cRingBufferLinear* ringBuffer;
cMutex* mutex;
cCondWait sleep;
unsigned char* readBuffer;
unsigned int readBufferLen;
cIptvProtocolIf* protocol;