summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-02-15 16:13:10 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-02-15 16:13:10 +0100
commit6bef17cdecfc0f195409df6778cfa79293e9962c (patch)
tree5795208ac917ab18513542a953f5baf3a14f7d99 /recording.c
parenta81e3699d13527ac8651969ddf0e0e411915d313 (diff)
downloadvdr-6bef17cdecfc0f195409df6778cfa79293e9962c.tar.gz
vdr-6bef17cdecfc0f195409df6778cfa79293e9962c.tar.bz2
When deleting the recording that is currently replayed, the replay is now stopped immediately
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/recording.c b/recording.c
index 096e0f85..894757c7 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 1.159 2008/02/10 21:57:09 kls Exp $
+ * $Id: recording.c 1.160 2008/02/15 15:50:06 kls Exp $
*/
#include "recording.h"
@@ -987,10 +987,12 @@ bool cRecordings::Update(bool Wait)
cRecording *cRecordings::GetByName(const char *FileName)
{
- for (cRecording *recording = First(); recording; recording = Next(recording)) {
- if (strcmp(recording->FileName(), FileName) == 0)
- return recording;
- }
+ if (FileName) {
+ for (cRecording *recording = First(); recording; recording = Next(recording)) {
+ if (strcmp(recording->FileName(), FileName) == 0)
+ return recording;
+ }
+ }
return NULL;
}