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 (backport from version 1.7.9)
This commit is contained in:
parent
36b1caedc2
commit
186ceaaacb
@ -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
|
||||
|
2
HISTORY
2
HISTORY
@ -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).
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user