[mythtv-commits] Ticket #10810: Commercial flagging on remote host

MythTV noreply at mythtv.org
Wed Jun 6 19:18:44 UTC 2012


#10810: Commercial flagging on remote host
---------------------------------------+------------------------
     Reporter:  fedora@…               |      Owner:  cpinkham
         Type:  Patch - Bug Fix        |     Status:  new
     Priority:  minor                  |  Milestone:  unknown
    Component:  MythTV - Mythcommflag  |    Version:  0.25-fixes
     Severity:  low                    |   Keywords:
Ticket locked:  0                      |
---------------------------------------+------------------------
 I noticed that when mythcommflag is run on a host that does not have file
 access to the recording, it exists reporting that it is unable to find the
 recording. The following patch seems to have fixed the issue for me:


 {{{
 diff --git a/mythtv/programs/mythcommflag/main.cpp
 b/mythtv/programs/mythcommflag/main.cpp
 index 74d161f..c9fb56a 100644
 --- a/mythtv/programs/mythcommflag/main.cpp
 +++ b/mythtv/programs/mythcommflag/main.cpp
 @@ -627,12 +627,7 @@ static qint64 GetFileSize(ProgramInfo *program_info)
      if (filename.startsWith("myth://"))
      {
          RemoteFile remotefile(filename, false, false, 0);
 -        struct stat filestat;
 -
 -        if (remotefile.Exists(filename, &filestat))
 -        {
 -            size = filestat.st_size;
 -        }
 +        size = remotefile.GetFileSize();
      }
      else
      {
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10810>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list