summaryrefslogtreecommitdiff
path: root/recman.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-04-10 21:56:40 +0200
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-04-10 21:56:40 +0200
commit7c16c0866ab07d6d34cefd2dc2a2465546a52846 (patch)
treee4f68b071ba6b33d0caf1e3b6304c84dd81f9105 /recman.cpp
parent54df4f849216084b7056e59f793c592e81c97e68 (diff)
downloadvdr-plugin-live-7c16c0866ab07d6d34cefd2dc2a2465546a52846.tar.gz
vdr-plugin-live-7c16c0866ab07d6d34cefd2dc2a2465546a52846.tar.bz2
Whitespace change only.
Diffstat (limited to 'recman.cpp')
-rw-r--r--recman.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/recman.cpp b/recman.cpp
index ca7741a..bf7ca3f 100644
--- a/recman.cpp
+++ b/recman.cpp
@@ -240,24 +240,24 @@ namespace vdrlive {
long RecordingsItemRec::Duration() const
{
- long RecLength = 0;
- if (!m_recording->FileName()) return 0;
- cString filename = cString::sprintf("%s%s", m_recording->FileName(), INDEXFILESUFFIX);
- if (*filename) {
- if (access(filename, R_OK) == 0) {
- struct stat buf;
- if (stat(filename, &buf) == 0) {
- struct tIndex { int offset; uchar type; uchar number; short reserved; };
- int delta = buf.st_size % sizeof(tIndex);
- if (delta) {
- delta = sizeof(tIndex) - delta;
- esyslog("ERROR: invalid file size (%ld) in '%s'", buf.st_size, *filename);
+ long RecLength = 0;
+ if (!m_recording->FileName()) return 0;
+ cString filename = cString::sprintf("%s%s", m_recording->FileName(), INDEXFILESUFFIX);
+ if (*filename) {
+ if (access(filename, R_OK) == 0) {
+ struct stat buf;
+ if (stat(filename, &buf) == 0) {
+ struct tIndex { int offset; uchar type; uchar number; short reserved; };
+ int delta = buf.st_size % sizeof(tIndex);
+ if (delta) {
+ delta = sizeof(tIndex) - delta;
+ esyslog("ERROR: invalid file size (%ld) in '%s'", buf.st_size, *filename);
+ }
+ RecLength = (buf.st_size + delta) / sizeof(tIndex) / SecondsToFrames(60);
+ }
+ }
}
- RecLength = (buf.st_size + delta) / sizeof(tIndex) / SecondsToFrames(60);
- }
- }
- }
- return RecLength;
+ return RecLength;
}
/**