[mythtv] [PATCH] delete old recordings after transcode

Isaac Richards ijr at po.cwru.edu
Sun Sep 21 00:17:05 EDT 2003


On Saturday 20 September 2003 11:06 pm, Geoffrey Hausheer wrote:
> 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:
> |
> > This:
> > > -                    // 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);'

Just checking =)  I'll get that applied shortly, then.

Isaac


More information about the mythtv-dev mailing list