diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-19 11:50:20 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-19 11:50:20 +0100 |
commit | 23ec57d8229be5c0a2eaa12fa313ceb8b49fc962 (patch) | |
tree | df01fdf5fe16d652783aec64320c7fcf98464dd9 /tools.c | |
parent | 50e09d1232c8d01a8a3f570aa8b3044f8d46a2e6 (diff) | |
download | vdr-23ec57d8229be5c0a2eaa12fa313ceb8b49fc962.tar.gz vdr-23ec57d8229be5c0a2eaa12fa313ceb8b49fc962.tar.bz2 |
Fixed switching into time shift mode when pausing live video1.7.24
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.c 2.21 2012/02/17 13:58:49 kls Exp $ + * $Id: tools.c 2.22 2012/02/18 15:30:35 kls Exp $ */ #include "tools.h" @@ -563,6 +563,14 @@ time_t LastModifiedTime(const char *FileName) return 0; } +off_t FileSize(const char *FileName) +{ + struct stat fs; + if (stat(FileName, &fs) == 0) + return fs.st_size; + return -1; +} + // --- cTimeMs --------------------------------------------------------------- cTimeMs::cTimeMs(int Ms) |