mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed cRecordings::DelByName() to avoid compilation errors with gcc 4.4
This commit is contained in:
parent
78fc3f2b30
commit
a397b8a512
@ -2287,6 +2287,7 @@ Matthias Schwarzott <zzam@gentoo.org>
|
|||||||
for adding DESTDIR and PREFIX handling to the Makefile
|
for adding DESTDIR and PREFIX handling to the Makefile
|
||||||
for fixing some compiler warnings with gcc-4.2.0
|
for fixing some compiler warnings with gcc-4.2.0
|
||||||
for fixing setting the locale file name in i18n-to-gettext.pl
|
for fixing setting the locale file name in i18n-to-gettext.pl
|
||||||
|
for fixing cRecordings::DelByName() to avoid compilation errors with gcc 4.4
|
||||||
|
|
||||||
Martin Ostermann <martin@familie-ostermann.de>
|
Martin Ostermann <martin@familie-ostermann.de>
|
||||||
for fixing processing the PDCDescriptor in 'libsi' on big endian systems
|
for fixing processing the PDCDescriptor in 'libsi' on big endian systems
|
||||||
|
2
HISTORY
2
HISTORY
@ -6151,3 +6151,5 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed generating CaPmts in case audio and video are encrypted using different
|
- Fixed generating CaPmts in case audio and video are encrypted using different
|
||||||
ECM pids.
|
ECM pids.
|
||||||
- Updated vdr.1 to use the new file names in recording directories.
|
- Updated vdr.1 to use the new file names in recording directories.
|
||||||
|
- Fixed cRecordings::DelByName() to avoid compilation errors with gcc 4.4
|
||||||
|
(thanks to Matthias Schwarzott).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: recording.c 2.16 2009/06/13 13:34:08 kls Exp $
|
* $Id: recording.c 2.17 2009/08/16 10:39:43 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -1156,7 +1156,7 @@ void cRecordings::DelByName(const char *FileName)
|
|||||||
if (recording) {
|
if (recording) {
|
||||||
cThreadLock DeletedRecordingsLock(&DeletedRecordings);
|
cThreadLock DeletedRecordingsLock(&DeletedRecordings);
|
||||||
Del(recording, false);
|
Del(recording, false);
|
||||||
char *ext = strrchr(recording->FileName(), '.');
|
char *ext = strrchr(recording->fileName, '.');
|
||||||
if (ext) {
|
if (ext) {
|
||||||
strncpy(ext, DELEXT, strlen(ext));
|
strncpy(ext, DELEXT, strlen(ext));
|
||||||
recording->fileSizeMB = DirSizeMB(recording->FileName());
|
recording->fileSizeMB = DirSizeMB(recording->FileName());
|
||||||
|
Loading…
Reference in New Issue
Block a user