diff options
-rwxr-xr-x | vdr-smarttvweb/httpresource.c | 6 |
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 |