1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed a faulty 'Timer still recording' query when canceling an editing job

This commit is contained in:
Klaus Schmidinger 2022-12-01 13:09:04 +01:00
parent 8d65cc6dc0
commit c7bf474a42
2 changed files with 3 additions and 2 deletions

View File

@ -9820,3 +9820,4 @@ Video Disk Recorder Revision History
- Fixed a compiler warning.
- Fixed generating the index file in the cutter (reported by Christoph Haubrich).
- Fixed a faulty 'Timer still recording' query when canceling an editing job.

4
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: menu.c 5.8 2022/11/22 15:53:07 kls Exp $
* $Id: menu.c 5.9 2022/12/01 13:09:04 kls Exp $
*/
#include "menu.h"
@ -3250,7 +3250,7 @@ static bool TimerStillRecording(const char *FileName)
int Id;
char *RemoteBuf = NULL;
cString Remote;
if (2 == sscanf(TimerId, "%d@%m[^ \n]", &Id, &RemoteBuf)) {
if (2 == sscanf(TimerId, "%d@%m[^ \n]", &Id, &RemoteBuf) && Id != 0) {
Remote = RemoteBuf;
free(RemoteBuf);
if (Interface->Confirm(tr("Timer still recording - really delete?"))) {