src/driver/record.cpp: -fix auto_delete

Origin commit data
------------------
Branch: ni/coolstream
Commit: 9cec234d73
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-11-04 (Sun, 04 Nov 2012)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2012-11-04 13:25:44 +01:00
parent c99bb09b56
commit a3b8f9378a

View File

@@ -231,9 +231,9 @@ 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), "\"%s.ts\"", filename); snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s.ts\" &", filename);
my_system("nice", "-n20", "rm", "-f", buf); my_system("/bin/sh", "-c", buf);
snprintf(buf,sizeof(buf), "%s.xml", filename); snprintf(buf,sizeof(buf), "%s.xml", filename);
//autoshift_delete = false; //autoshift_delete = false;
unlink(buf); unlink(buf);
} }