mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 19:16:51 +02:00
added compatibility with VDR 1.6 tsplay-0.1 patch
This commit is contained in:
parent
6f984b87e3
commit
7517b874d8
1
HISTORY
1
HISTORY
@ -1,6 +1,7 @@
|
||||
VDR Plugin 'streamdev' Revision History
|
||||
---------------------------------------
|
||||
|
||||
- added compatibility with VDR 1.6 tsplay-0.1 patch
|
||||
- added support for EnhancedAC3 (thanks to Eric Valette)
|
||||
- fixed a memory leak in cStreamdevPatFilter::GetPid (thanks to lhanisch)
|
||||
- length -1 is the correct value for streams in M3U playlists
|
||||
|
@ -34,7 +34,7 @@ RecPlayer::RecPlayer(cRecording* rec)
|
||||
|
||||
// FIXME find out max file path / name lengths
|
||||
|
||||
#if VDRVERSNUM >= 10703
|
||||
#if VDRVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
|
||||
indexFile = new cIndexFile(recording->FileName(), false, rec->IsPesRecording());
|
||||
#else
|
||||
indexFile = new cIndexFile(recording->FileName(), false);
|
||||
@ -58,7 +58,7 @@ void RecPlayer::scan()
|
||||
for(i = 1; i < 1000; i++)
|
||||
{
|
||||
|
||||
#if APIVERSNUM < 10703
|
||||
#if APIVERSNUM < 10703 || !defined(MAXVIDEOFILESIZETS)
|
||||
snprintf(fileName, 2047, "%s/%03i.vdr", recording->FileName(), i);
|
||||
//log->log("RecPlayer", Log::DEBUG, "FILENAME: %s", fileName);
|
||||
file = fopen(fileName, "r");
|
||||
@ -99,7 +99,7 @@ int RecPlayer::openFile(int index)
|
||||
|
||||
char fileName[2048];
|
||||
|
||||
#if APIVERSNUM >= 10703
|
||||
#if APIVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
|
||||
snprintf(fileName, 2047, "%s/%05i.ts", recording->FileName(), index);
|
||||
isyslog("openFile called for index %i string:%s", index, fileName);
|
||||
|
||||
@ -222,7 +222,7 @@ uint64_t RecPlayer::positionFromFrameNumber(uint32_t frameNumber)
|
||||
{
|
||||
if (!indexFile) return 0;
|
||||
|
||||
#if VDRVERSNUM >= 10703
|
||||
#if VDRVERSNUM >= 10703 || defined(MAXVIDEOFILESIZETS)
|
||||
uint16_t retFileNumber;
|
||||
off_t retFileOffset;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user