summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthlo <t.lohmar@gmx.de>2013-01-21 22:08:52 +0100
committerthlo <t.lohmar@gmx.de>2013-01-21 22:08:52 +0100
commitc5ecb493d35373673004e5c6d84b8dff4f379eef (patch)
tree18f89606acc4894520eabd3a167971bc89d58e04
parentbdfc63bbfab0674c9626a863a90fb2c287ef48bc (diff)
downloadvdr-plugin-smarttvweb-c5ecb493d35373673004e5c6d84b8dff4f379eef.tar.gz
vdr-plugin-smarttvweb-c5ecb493d35373673004e5c6d84b8dff4f379eef.tar.bz2
resume fix
-rwxr-xr-xvdr-smarttvweb/httpresource.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vdr-smarttvweb/httpresource.c b/vdr-smarttvweb/httpresource.c
index 7356368..501da83 100755
--- a/vdr-smarttvweb/httpresource.c
+++ b/vdr-smarttvweb/httpresource.c
@@ -1709,6 +1709,12 @@ int cHttpResource::sendResumeXml () {
sendError(404, "Not Found", NULL, "Failed to find recording.");
return OKAY;
}
+ if (rec->IsNew()) {
+ *(mLog->log())<< DEBUGPREFIX
+ << " sendResume: file is new " << endl;
+ sendError(400, "Bad Request", NULL, "File is new.");
+ return OKAY;
+ }
cResumeFile resume(entry.mFilename.c_str(), rec->IsPesRecording());
*(mLog->log())<< DEBUGPREFIX