From 3058354dba7f936d4e54426d89b1f82ddb059047 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 18 Jan 2025 20:57:06 +0100 Subject: [PATCH] Fixed setting the file name of the info file after renaming a recording --- CONTRIBUTORS | 1 + HISTORY | 4 +++- recording.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 1ea6d6d7..85bb9421 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -3377,6 +3377,7 @@ Stefan Hofmann for adding a header to the backtrace for adding parameter checks to strn0cpy() for making the info files of recordings only be re-read if they have been modified + for reporting missing setting the file name of the info file after renaming a recording Stefan Blochberger for suggesting to automatically display the progress display whenever replay of a diff --git a/HISTORY b/HISTORY index a83adb78..49d3f900 100644 --- a/HISTORY +++ b/HISTORY @@ -10034,7 +10034,7 @@ Video Disk Recorder Revision History (suggested by Stefan Hofmann). - Added vdrrootdir and incdir to vdr.pc (thanks to Stefan Hofmann). -2025-01-16: +2025-01-18: - Removed all DEPRECATED_* code. - Fixed error checking in case the fps value can't be determined by the frame parser. @@ -10061,3 +10061,5 @@ Video Disk Recorder Revision History cStatus::OsdItem() will still work as before, because the default implementation of cStatus::OsdItem2() calls cStatus::OsdItem(). APIVERSNUM is now 30006. +- Fixed setting the file name of the info file after renaming a recording (reported by + Stefan Hofmann). diff --git a/recording.c b/recording.c index df6eab83..d3796322 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 5.36 2025/01/15 10:50:29 kls Exp $ + * $Id: recording.c 5.37 2025/01/18 20:57:06 kls Exp $ */ #include "recording.h" @@ -1354,6 +1354,7 @@ bool cRecording::ChangeName(const char *NewName) fileName = strdup(OldFileName); return false; } + info->SetFileName(NewFileName); isOnVideoDirectoryFileSystem = -1; // it might have been moved to a different file system ClearSortName(); }