[vdr] small patch to compil vdr-1.7.8 with gcc-4.4.0

Gregoire Favre gregoire.favre at gmail.com
Tue Jul 14 12:22:47 CEST 2009


Hello,

today I (finally...) took some time to compil the "new" VDR but it
failed, with this change it compil :

--- recording.c~	2009-07-13 21:45:05.000000000 +0200
+++ recording.c	2009-07-13 21:51:51.000000000 +0200
@@ -1217,7 +1217,8 @@
   if (recording) {
      cThreadLock DeletedRecordingsLock(&DeletedRecordings);
      Del(recording, false);
-     char *ext = strrchr(recording->FileName(), '.');
+     //char *ext = strrchr(recording->FileName(), '.');
+     char *ext = strrchr(const_cast<char *>(recording->FileName()), '.');
      if (ext) {
         strncpy(ext, DELEXT, strlen(ext));
         recording->fileSizeMB = DirSizeMB(recording->FileName());

Sorry if I missed something already posted for vdr-1.7.8 here and have a
great day,
-- 
	Grégoire FAVRE



More information about the vdr mailing list