Fixed cRecordings::DelByName() to avoid compilation errors with gcc 4.4 (backport from version 1.7.9)

This commit is contained in:
Klaus Schmidinger 2012-02-14 13:57:25 +01:00
parent 36b1caedc2
commit 186ceaaacb
3 changed files with 6 additions and 2 deletions

View File

@ -2371,3 +2371,5 @@ Ralf Schueler <dl4mw@schueler.ws>
with gcc 4.4" from version 1.7.8 to 1.6.0-3
for backporting "Modified cSVDRP::CmdGRAB() to avoid writing into const data"
from version 1.7.8 to 1.6.0-3
for backporting "Fixed cRecordings::DelByName() to avoid compilation errors with
gcc 4.4" from version 1.7.9 to 1.6.0-3

View File

@ -5767,3 +5767,5 @@ Video Disk Recorder Revision History
(backport from version 1.7.8, thanks to Ralf Schueler).
- Modified cSVDRP::CmdGRAB() to avoid writing into const data
(backport from version 1.7.8, thanks to Ralf Schueler).
- Fixed cRecordings::DelByName() to avoid compilation errors with gcc 4.4
(backport from version 1.7.9, thanks to Ralf Schueler).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: recording.c 1.162.1.1 2012/02/14 13:47:29 kls Exp $
* $Id: recording.c 1.162.1.2 2012/02/14 13:57:25 kls Exp $
*/
#include "recording.h"
@ -1022,7 +1022,7 @@ void cRecordings::DelByName(const char *FileName)
if (recording) {
cThreadLock DeletedRecordingsLock(&DeletedRecordings);
Del(recording, false);
char *ext = strrchr(recording->FileName(), '.');
char *ext = strrchr(recording->fileName, '.');
if (ext) {
strncpy(ext, DELEXT, strlen(ext));
recording->fileSizeMB = DirSizeMB(recording->FileName());