diff --git a/src/driver/record.cpp b/src/driver/record.cpp index d99baa94b..aa7da3d1a 100644 --- a/src/driver/record.cpp +++ b/src/driver/record.cpp @@ -226,7 +226,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), "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; diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 8c523d21c..1643869ee 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -2572,7 +2572,9 @@ bool CMovieBrowser::delFile_vlc(CFile& /*file*/) bool CMovieBrowser::delFile_std(CFile& file) { bool result = true; - unlink(file.Name.c_str()); // fix: use full path + char buf[FILENAME_MAX]={0}; + snprintf(buf,sizeof(buf), "nice -n 20 rm -f %s &", file.Name.c_str()); + system(buf); TRACE(" delete file: %s\r\n",file.Name.c_str()); return(result); }