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

This commit is contained in:
[CST] Focus
2012-09-13 20:10:53 +04:00
parent 106c59a792
commit 2d0642d36d

View File

@@ -224,7 +224,7 @@ bool CRecordInstance::Stop(bool remove_event)
CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD); CCamManager::getInstance()->Stop(channel_id, CCamManager::RECORD);
if((autoshift && g_settings.auto_delete) /* || autoshift_delete*/) { 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); system(buf);
snprintf(buf,sizeof(buf), "%s.xml", filename); snprintf(buf,sizeof(buf), "%s.xml", filename);
//autoshift_delete = false; //autoshift_delete = false;