[mythtv] [PATCH] delete old recordings after transcode
ou401cru02 at sneakemail.com
Sat Sep 20 23:06:59 EDT 2003
On Sat, 20 Sep 2003 22:31:27 -0400, "Isaac Richards ijr-at-po.cwru.edu
|mythtv/1.0-Allow|" <e6kbhbk35r0t at sneakemail.com> said:
> > - // unlink(filename);
> > rename (tmpfile, filename);
> > + if (! gContext->GetNumSetting("SaveTranscoding", 0))
> > + unlink(filename);
> doesn't look right to me.. filename would be the new transcoded file
> when the
> unlink is called, right?
of course you are right. I tried to get smart and do the unlink after
the rename and screwed it up. It should of coure be 'unlink(oldfile);'
More information about the mythtv-dev