diff options
author | thlo <smarttv640@gmail.com> | 2013-01-21 22:08:52 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-01-21 22:08:52 +0100 |
commit | 18826c9c913cbfbe537ad23783f2137373becb95 (patch) | |
tree | 18f89606acc4894520eabd3a167971bc89d58e04 | |
parent | 9bf91b278fb71ddb118c5df18a894eff647c1ebd (diff) | |
download | vdr-plugin-smarttvweb-18826c9c913cbfbe537ad23783f2137373becb95.tar.gz vdr-plugin-smarttvweb-18826c9c913cbfbe537ad23783f2137373becb95.tar.bz2 |
resume fix
-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 |