mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Merry Christmas to all VDR users!
It's been a very busy year for me, in which I was unable to
spend as much time on VDR as I would have liked to. But now things
are settled again and I managed to prepare a new developer version
with the most important fixes and improvements. Please feel free
to tell me if I missed something important - some things may well
have slipped under my radar ;-).
So here's my Christmas gift for you!
VDR developer version 2.3.2 is now available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-2.3.2.tar.bz2
A 'diff' against the previous version is available at
ftp://ftp.tvdr.de/vdr/Developer/vdr-2.3.1-2.3.2.diff
MD5 checksums:
6dbb208ea3d59658a18912b49af175b3 vdr-2.3.2.tar.bz2
68a0ed9f01048026333939d30e0a6474 vdr-2.3.1-2.3.2.diff
WARNING:
========
This is a *developer* version. Even though *I* use it in my productive
environment, I strongly recommend that you only use it under controlled
conditions and for testing and debugging.
From the HISTORY file:
- Fixed a crash when deleting a recording (reported by Oliver Endriss).
- Fixed an overflow of PIDs in a receiver (thanks to Robert Hannebauer).
- Updated the Italian OSD texts (thanks to Diego Pierotto).
- Fixed initializing device specific parameters in cDvbTransponderParameters.
- The function SetCurrentChannel(const cChannel *Channel) is now deprecated and
may be removed in a future version. Use SetCurrentChannel(int ChannelNumber)
instead.
- The SVDRP command DELC now refuses to delete the very last channel in the list,
to avoid ending up with an empty channel list.
- The cRwLock class now allows nested read locks within a write lock from the
same thread. This fixes possible crashes when moving or deleting channels in
the menu or through SVDRP (as well as other operations that try to acquire a
read lock within a write lock).
- Fixed a crash when trying to delete a channel that is being used by a timer.
- Fixed setting the current item and counter values in the Recordings menu after
deleting the last recording in a subfolder.
- Fixed a crash when deleting a recording that is currently being replayed.
- Fixed a crash when moving a recording to a folder on a different volume.
The cRecordingsHandler now performs its actual operations in a separate thread,
thus avoiding locking problems and reducing the time between subsequent
operations.
- Added a note to the description of cFont::Size(), regarding possible differences
between it and cFont::Height() (suggested to Thomas Reufer).
- Made the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode
'const' (thanks to Thomas Reufer).
- Fixed resuming replay at a given position, which was off by one frame (thanks
to Thomas Reufer).
- Improved handling frame numbers to have a smoother progress display during
replay of recordings with B-frames (thanks to Thomas Reufer).
- Fixed replaying recordings to their very end, if they don't end with an I-frame
(thanks to Thomas Reufer).
- Implemented a frame parser for H.265 (HEVC) recordings (thanks to Thomas Reufer).
- Added cFont::Width(void) to get the default character width and allow stretched
font drawing in high level OSDs (thanks to Thomas Reufer).
- Fixed regenerating the index of audio recordings (thanks to Thomas Reufer).
- Fixed building VDR with systemd >= 230 (thanks to Ville Skyttä).
- Sorted sources.conf by continous azimuth (thanks to Lucian Muresan).
- Added 'S58.5E Kazsat 3' to sources.conf (thanks to Aitugan Sarbassov).
- Fixed truncated date/time strings in the skins on multi-byte UTF-8 systems
(reported by Sergey Chernyavskiy).
- Updated the Estonian OSD texts (thanks to Arthur Konovalov).
- Added a 'const' version of cTimers::GetTimer() (thanks to Lars Hanisch).
- Fixed a typo in the description of cTimers::GetTimersRead() (thanks to Lars
Hanisch).
- Fixed a possible buffer overflow in handling CA descriptors (suggested by
Lars Hanisch).
- Avoiding some duplicate code and unnecessary work in nit.c (thanks to Ville
Skyttä).
- Added support for the systemd watchdog (thanks to Marc Perrudin),
- Added a short sleep to cTSBuffer::Action() to avoid high CPU usage (thanks to
Sergey Chernyavskiy).
61 lines
2.3 KiB
C++
61 lines
2.3 KiB
C++
/*
|
|
* pat.h: PAT section filter
|
|
*
|
|
* See the main source file 'vdr.c' for copyright information and
|
|
* how to reach the author.
|
|
*
|
|
* $Id: pat.h 4.1 2016/12/23 14:03:24 kls Exp $
|
|
*/
|
|
|
|
#ifndef __PAT_H
|
|
#define __PAT_H
|
|
|
|
#include <stdint.h>
|
|
#include "filter.h"
|
|
#include "thread.h"
|
|
|
|
#define MAXPMTENTRIES 64
|
|
|
|
class cPatFilter : public cFilter {
|
|
private:
|
|
cMutex mutex;
|
|
cTimeMs timer;
|
|
int patVersion;
|
|
int pmtIndex;
|
|
int pmtId[MAXPMTENTRIES];
|
|
int pmtVersion[MAXPMTENTRIES];
|
|
int numPmtEntries;
|
|
int sid;
|
|
int GetPmtPid(int Index) { return pmtId[Index] & 0x0000FFFF; }
|
|
int MakePmtId(int PmtPid, int Sid) { return PmtPid | (Sid << 16); }
|
|
bool PmtVersionChanged(int PmtPid, int Sid, int Version, bool SetNewVersion = false);
|
|
void SwitchToNextPmtPid(void);
|
|
protected:
|
|
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
|
|
public:
|
|
cPatFilter(void);
|
|
virtual void SetStatus(bool On);
|
|
void Trigger(int Sid = -1);
|
|
};
|
|
|
|
void GetCaDescriptors(int Source, int Transponder, int ServiceId, const int *CaSystemIds, cDynamicBuffer &Buffer, int EsPid);
|
|
///< Gets all CA descriptors for a given channel.
|
|
///< Copies all available CA descriptors for the given Source, Transponder and ServiceId
|
|
///< into the provided buffer. Only those CA descriptors
|
|
///< are copied that match one of the given CA system IDs (or all of them, if CaSystemIds
|
|
///< is 0xFFFF).
|
|
|
|
int GetCaPids(int Source, int Transponder, int ServiceId, const int *CaSystemIds, int BufSize, int *Pids);
|
|
///< Gets all CA pids for a given channel.
|
|
///< Copies all available CA pids from the CA descriptors for the given Source, Transponder and ServiceId
|
|
///< into the provided buffer at Pids (at most BufSize - 1 entries, the list will be zero-terminated).
|
|
///< Only the CA pids of those CA descriptors are copied that match one of the given CA system IDs
|
|
///< (or all of them, if CaSystemIds is 0xFFFF).
|
|
///< Returns the number of pids copied into Pids (0 if no CA descriptors are
|
|
///< available), or -1 if BufSize was too small to hold all CA pids.
|
|
|
|
int GetPmtPid(int Source, int Transponder, int ServiceId);
|
|
///< Gets the Pid of the PMT in which the CA descriptors for this channel are defined.
|
|
|
|
#endif //__PAT_H
|