diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-06-23 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-06-23 18:00:00 +0200 |
commit | 54d069c95c546d6b12f6effc1af7a0274b7c31e4 (patch) | |
tree | a922ce346d13c6262716376a37885db31729947c /recording.c | |
parent | f06d2c27fca449148d9d8fac19d81c668744f170 (diff) | |
download | vdr-patch-lnbsharing-54d069c95c546d6b12f6effc1af7a0274b7c31e4.tar.gz vdr-patch-lnbsharing-54d069c95c546d6b12f6effc1af7a0274b7c31e4.tar.bz2 |
Version 1.1.4vdr-1.1.4
- Added Hungarian language texts (thanks to Istvan Koenigsberger and Guido Josten).
- Activated cutting.
- Activated 'Transfer Mode'.
- Moved handling of the Menu key entirely into vdr.c.
- Switched VDR's own player to the new cPlayer/cControl structures.
- Switched handling 'Transfer Mode' to the new cPlayer/cControl structures.
- The following limitations apply to this version:
+ The '-a' option (for Dolby Digital audio) doesn't work yet.
+ Switching between different language tracks doesn't work yet.
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/recording.c b/recording.c index 7bc896c..7ebec5c 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.63 2002/06/16 11:29:27 kls Exp $ + * $Id: recording.c 1.64 2002/06/22 10:11:49 kls Exp $ */ #include "recording.h" @@ -1056,6 +1056,8 @@ int cFileName::NextFile(void) return SetOffset(fileNumber + 1); } +// --- Index stuff ----------------------------------------------------------- + const char *IndexToHMSF(int Index, bool WithFrame) { static char buffer[16]; @@ -1080,3 +1082,21 @@ int SecondsToFrames(int Seconds) { return Seconds * FRAMESPERSEC; } + +// --- ReadFrame ------------------------------------------------------------- + +int ReadFrame(int f, uchar *b, int Length, int Max) +{ + if (Length == -1) + Length = Max; // this means we read up to EOF (see cIndex) + else if (Length > Max) { + esyslog("ERROR: frame larger than buffer (%d > %d)", Length, Max); + Length = Max; + } + int r = safe_read(f, b, Length); + if (r < 0) + LOG_ERROR; + return r; +} + + |