diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-15 16:13:10 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2008-02-15 16:13:10 +0100 |
commit | 6bef17cdecfc0f195409df6778cfa79293e9962c (patch) | |
tree | 5795208ac917ab18513542a953f5baf3a14f7d99 /menu.c | |
parent | a81e3699d13527ac8651969ddf0e0e411915d313 (diff) | |
download | vdr-6bef17cdecfc0f195409df6778cfa79293e9962c.tar.gz vdr-6bef17cdecfc0f195409df6778cfa79293e9962c.tar.bz2 |
When deleting the recording that is currently replayed, the replay is now stopped immediately
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.474 2008/02/10 16:02:02 kls Exp $ + * $Id: menu.c 1.475 2008/02/15 16:06:56 kls Exp $ */ #include "menu.h" @@ -2084,6 +2084,8 @@ eOSState cMenuRecordings::Delete(void) } cRecording *recording = GetRecording(ri); if (recording) { + if (cReplayControl::NowReplaying() && strcmp(cReplayControl::NowReplaying(), ri->FileName()) == 0) + cControl::Shutdown(); if (recording->Delete()) { cReplayControl::ClearLastReplayed(ri->FileName()); Recordings.DelByName(ri->FileName()); |