From 9cec234d736ae96523f577fcd9ce48132b734f87 Mon Sep 17 00:00:00 2001 From: satbaby Date: Sun, 4 Nov 2012 13:25:44 +0100 Subject: [PATCH] src/driver/record.cpp: -fix auto_delete --- src/driver/record.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/driver/record.cpp b/src/driver/record.cpp index b3edb2b47..ae2567723 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -231,9 +231,9 @@ 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), "\"%s.ts\"", filename); - my_system("nice", "-n20", "rm", "-f", buf); - snprintf(buf,sizeof(buf), "%s.xml", filename); + snprintf(buf,sizeof(buf), "nice -n 20 rm -f \"%s.ts\" &", filename); + my_system("/bin/sh", "-c", buf); + snprintf(buf,sizeof(buf), "%s.xml", filename); //autoshift_delete = false; unlink(buf); }