driver/record.cpp: fix temp timeshift file delete cmd

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d0642d36d
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-09-13 (Thu, 13 Sep 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-09-13 20:10:53 +04:00
parent abbe76f929
commit 97539761e6

View File

@@ -224,7 +224,7 @@ bool CRecordInstance::Stop(bool remove_event)
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if((autoshift && g_settings.auto_delete) /* || autoshift_delete*/) {
snprintf(buf,sizeof(buf), "nice -n 20 rm -f %s.ts &", filename);
snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s.ts\" &", filename);
system(buf);
snprintf(buf,sizeof(buf), "%s.xml", filename);
//autoshift_delete = false;