mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
- Fixed a crash when setting the time transponder in the Setup menu, caused by the
new 'noneString' in cMenuEditChanItem (reported by Thomas Günther).
- Added NULL checks to some strdup() calls in menuitems.c (suggested by Darren
Salt).
- Removed the unnecessary 'value' member from cMenuEditItem.
- Fixed the initial setting of the time transponder setup parameter (reported
by Thomas Günther).
- Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey().
- Allowing a tolerance for symbol rate values that are off by one (thanks to
Richard Lithvall).
- Added VBITeletextDescriptorTag, TeletextDescriptorTag, LocalTimeOffsetDescriptorTag
and PremiereContentTransmissionDescriptor to 'libsi' (thanks to Marco Schlüßler).
- Using geteuid() to check whether VDR is running as user 'root' (suggested by
Tobias Grimm).
- Added a missing "Key$" in skincurses.c (reported by Darren Salt).
- Reintroduced the log message "deleting plugin: ..." when shutting down VDR (upon
request by Ville Skyttä, as in the initial patch from Christoph Haubrich).
- Fixed the vdr.1 man page (a single DVB card can record and do live tv).
- The preferred audio language is now automatically selected when starting replay.
- Updated the Danish OSD texts (thanks to Mogens Elneff).
- The new function cPlugin::Active() can be used by a plugin to indicate that it
is still busy and the system should not shut down or restart (based on a patch
from Sascha Volkenandt). See PLUGINS.html for details.
- Fixed setting the 'Delta' parameter when calling the shutdown script with
no active timer (reported by Helge Lenz).
- In order to make sure that plugins are compiled with the same DVB driver header
files as VDR itself, the definition of DVBDIR has been removed from the VDR
Makefile. If you are using a driver version that has its header files at a location
other than /usr/include/linux/dvb, you can define DVBDIR in the Make.config
file (see also INSTALL). Note that if you already have a Make.config file of your
own, you should add the lines
ifdef DVBDIR
INCLUDES += -I$(DVBDIR)/include
endif
to its end, as in the new Make.config.template.
Any reference to DVBDIR should be removed from all plugins' Makefiles, like this:
------------------------------------------------------------
--- PLUGINS/src/hello/Makefile 2005/11/11 13:20:14 1.10
+++ PLUGINS/src/hello/Makefile 2006/04/15 11:58:46 1.11
@@ -20,7 +20,6 @@
### The directory environment:
-DVBDIR = ../../../../DVB
VDRDIR = ../../..
LIBDIR = ../../lib
TMPDIR = /tmp
@@ -40,7 +39,7 @@
### Includes and Defines (add further entries here):
-INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include
+INCLUDES += -I$(VDRDIR)/include
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
------------------------------------------------------------
Thanks to Marco Schlüßler for pointing out this problem.
- Implemented kNext and kPrev keys (based on a patch from Peter Juszack).
See MANUAL for details.
- Implemented kChanPrev (from a patch from Darren Salt).
- The "Update channels" parameter in the "Setup/DVB" menu has been extended to
allow updating only the PIDs (see MANUAL for details). When updating to this
version of VDR, please verify that the setting is as you want it to be, because
the values have been shifted.
- The new APIVERSION (see config.h) now allows existing compiled plugins to be
used with newer versions of VDR, as long as there have been no changes to the
VDR header files since the last APIVERSION. Existing plugins' Makefiles should
have all references to VDRVERSION changed to APIVERSION, like this:
------------------------------------------------------------
--- PLUGINS/src/hello/Makefile 2006/04/15 11:58:46 1.11
+++ PLUGINS/src/hello/Makefile 2006/04/16 09:03:50 1.12
@@ -28,9 +28,9 @@
-include $(VDRDIR)/Make.config
-### The version number of VDR (taken from VDR's "config.h"):
+### The version number of VDR's plugin API (taken from VDR's "config.h"):
-VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
### The name of the distribution archive:
@@ -67,7 +67,7 @@
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
- @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+ @cp $@ $(LIBDIR)/$@.$(APIVERSION)
dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)
------------------------------------------------------------
- If a timer is newly created from within the "Schedule" menu, and its event is
already running or has its start time within the next two minutes, it now goes
directly into the "Edit timer" menu in order to allow the user to make further
changes to timer parameters before the actual recording starts (inspired by
Christian Wieninger's "epgsearch" plugin).
- Added format check to syslog_with_tid().
- Updated the INSTALL file's section about non-VDR files in the video directory
(since version 1.3.38 disk access is done in a separate thread, so the watchdog
timer won't hit).
- Changed the behaviour of the "Use small font" setup option to *always* use the small
font if set to '2' - even if it would have been a fixed font (suggested by Ronny
Kornexl).
- No longer using characters 0x01 and 0x02 for mapping single quote and slash in
recording names (thanks to Patrick Fischer for reporting that this was a problem
with XML). The single quote is not mapped at all, and the slash is interchanged
with the tilde. Existing recordings will be handled like before, so there is
no need to actually rename them.
- The cRemote::CallPlugin() function now has a boolean return value that tells
the caller whether initiating the plugin call was successful (suggested by
Reinhard Nissl). If it returns false, another plugin call is currently pending
and the caller should try again later. This also means that the SVDRP command
PLUG can now return an error code is the call fails.
- The new function cPlugin::MainThreadHook() can be used by plugins to perform
actions in the context of the main program thread. Use this function with great
care and only of you absolutely have to! See also PLUGINS.html.
281 lines
7.9 KiB
C++
281 lines
7.9 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2003 by Marcel Wiesweg *
|
|
* *
|
|
* This program 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. *
|
|
* *
|
|
* $Id: section.h 1.4 2006/04/14 10:53:44 kls Exp $
|
|
* *
|
|
***************************************************************************/
|
|
|
|
#ifndef LIBSI_SECTION_H
|
|
#define LIBSI_SECTION_H
|
|
|
|
#include <time.h>
|
|
|
|
#include "si.h"
|
|
#include "headers.h"
|
|
|
|
namespace SI {
|
|
|
|
class PAT : public NumberedSection {
|
|
public:
|
|
PAT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
PAT() {}
|
|
class Association : public LoopElement {
|
|
public:
|
|
int getServiceId() const;
|
|
int getPid() const;
|
|
bool isNITPid() const { return getServiceId()==0; }
|
|
virtual int getLength() { return sizeof(pat_prog); }
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const pat_prog *s;
|
|
};
|
|
int getTransportStreamId() const;
|
|
StructureLoop<Association> associationLoop;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const pat *s;
|
|
};
|
|
|
|
class CAT : public NumberedSection {
|
|
public:
|
|
CAT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
CAT() {}
|
|
DescriptorLoop loop;
|
|
protected:
|
|
virtual void Parse();
|
|
};
|
|
|
|
class PMT : public NumberedSection {
|
|
public:
|
|
PMT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
PMT() {}
|
|
class Stream : public LoopElement {
|
|
public:
|
|
int getPid() const;
|
|
int getStreamType() const;
|
|
DescriptorLoop streamDescriptors;
|
|
virtual int getLength() { return sizeof(pmt_info)+streamDescriptors.getLength(); }
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const pmt_info *s;
|
|
};
|
|
DescriptorLoop commonDescriptors;
|
|
StructureLoop<Stream> streamLoop;
|
|
int getServiceId() const;
|
|
int getPCRPid() const;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const pmt *s;
|
|
};
|
|
|
|
class TSDT : public NumberedSection {
|
|
public:
|
|
TSDT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
TSDT() {}
|
|
DescriptorLoop transportStreamDescriptors;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const tsdt *s;
|
|
};
|
|
|
|
class NIT : public NumberedSection {
|
|
public:
|
|
NIT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
NIT() {}
|
|
class TransportStream : public LoopElement {
|
|
public:
|
|
int getTransportStreamId() const;
|
|
int getOriginalNetworkId() const;
|
|
virtual int getLength() { return sizeof(ni_ts)+transportStreamDescriptors.getLength(); }
|
|
DescriptorLoop transportStreamDescriptors;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const ni_ts *s;
|
|
};
|
|
DescriptorLoop commonDescriptors;
|
|
StructureLoop<TransportStream> transportStreamLoop;
|
|
int getNetworkId() const;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const nit *s;
|
|
};
|
|
|
|
//BAT has the same structure as NIT but different allowed descriptors
|
|
class BAT : public NIT {
|
|
public:
|
|
BAT(const unsigned char *data, bool doCopy=true) : NIT(data, doCopy) {}
|
|
BAT() {}
|
|
int getBouquetId() const { return getNetworkId(); }
|
|
};
|
|
|
|
class SDT : public NumberedSection {
|
|
public:
|
|
SDT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
SDT() {}
|
|
class Service : public LoopElement {
|
|
public:
|
|
int getServiceId() const;
|
|
int getEITscheduleFlag() const;
|
|
int getEITpresentFollowingFlag() const;
|
|
RunningStatus getRunningStatus() const;
|
|
int getFreeCaMode() const;
|
|
virtual int getLength() { return sizeof(sdt_descr)+serviceDescriptors.getLength(); }
|
|
DescriptorLoop serviceDescriptors;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const sdt_descr *s;
|
|
};
|
|
int getTransportStreamId() const;
|
|
int getOriginalNetworkId() const;
|
|
StructureLoop<Service> serviceLoop;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const sdt *s;
|
|
};
|
|
|
|
class EIT : public NumberedSection {
|
|
public:
|
|
EIT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
EIT() {}
|
|
class Event : public LoopElement {
|
|
public:
|
|
int getEventId() const;
|
|
time_t getStartTime() const; //UTC
|
|
time_t getDuration() const;
|
|
|
|
int getMJD() const;
|
|
int getStartTimeHour() const; //UTC
|
|
int getStartTimeMinute() const; //UTC
|
|
int getStartTimeSecond() const; //UTC
|
|
int getDurationHour() const;
|
|
int getDurationMinute() const;
|
|
int getDurationSecond() const;
|
|
RunningStatus getRunningStatus() const;
|
|
int getFreeCaMode() const;
|
|
|
|
DescriptorLoop eventDescriptors;
|
|
virtual int getLength() { return sizeof(eit_event)+eventDescriptors.getLength(); }
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const eit_event *s;
|
|
};
|
|
int getServiceId() const;
|
|
int getTransportStreamId() const;
|
|
int getOriginalNetworkId() const;
|
|
int getSegmentLastSectionNumber() const;
|
|
int getLastTableId() const;
|
|
StructureLoop<Event> eventLoop;
|
|
|
|
//true if table conveys present/following information, false if it conveys schedule information
|
|
bool isPresentFollowing() const;
|
|
//true if table describes TS on which it is broadcast, false if it describes other TS
|
|
bool isActualTS() const;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const eit *s;
|
|
};
|
|
|
|
class TDT : public Section {
|
|
public:
|
|
TDT(const unsigned char *data, bool doCopy=true) : Section(data, doCopy) {}
|
|
TDT() {}
|
|
time_t getTime() const; //UTC
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const tdt *s;
|
|
};
|
|
|
|
class TOT : public CRCSection {
|
|
public:
|
|
TOT(const unsigned char *data, bool doCopy=true) : CRCSection(data, doCopy) {}
|
|
TOT() {}
|
|
time_t getTime() const;
|
|
DescriptorLoop descriptorLoop;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const tot *s;
|
|
};
|
|
|
|
class RST : public Section {
|
|
public:
|
|
RST(const unsigned char *data, bool doCopy=true) : Section(data, doCopy) {}
|
|
RST() {}
|
|
class RunningInfo : public LoopElement {
|
|
public:
|
|
int getTransportStreamId() const;
|
|
int getOriginalNetworkId() const;
|
|
int getServiceId() const;
|
|
int getEventId() const;
|
|
RunningStatus getRunningStatus() const;
|
|
virtual int getLength() { return sizeof(rst_info); }
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const rst_info *s;
|
|
};
|
|
StructureLoop<RunningInfo> infoLoop;
|
|
protected:
|
|
virtual void Parse();
|
|
};
|
|
|
|
class AIT : public NumberedSection {
|
|
public:
|
|
AIT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
AIT() {}
|
|
class Application : public LoopElement {
|
|
public:
|
|
virtual int getLength() { return sizeof(ait_app)+applicationDescriptors.getLength(); }
|
|
long getOrganisationId() const;
|
|
int getApplicationId() const;
|
|
int getControlCode() const;
|
|
MHP_DescriptorLoop applicationDescriptors;
|
|
protected:
|
|
virtual void Parse();
|
|
const ait_app *s;
|
|
};
|
|
MHP_DescriptorLoop commonDescriptors;
|
|
StructureLoop<Application> applicationLoop;
|
|
int getApplicationType() const;
|
|
int getAITVersion() const;
|
|
protected:
|
|
const ait *first;
|
|
virtual void Parse();
|
|
};
|
|
|
|
/* Premiere Content Information Table */
|
|
|
|
class PremiereCIT : public NumberedSection {
|
|
public:
|
|
PremiereCIT(const unsigned char *data, bool doCopy=true) : NumberedSection(data, doCopy) {}
|
|
PremiereCIT() {}
|
|
int getContentId() const;
|
|
time_t getDuration() const;
|
|
PCIT_DescriptorLoop eventDescriptors;
|
|
protected:
|
|
virtual void Parse();
|
|
private:
|
|
const pcit *s;
|
|
};
|
|
|
|
} //end of namespace
|
|
|
|
#endif //LIBSI_TABLE_H
|