[mythtv-commits] Ticket #12680: ThemeUpdateChecker accesses Videos storage group

MythTV noreply at mythtv.org
Sat Mar 12 14:21:16 UTC 2016


#12680: ThemeUpdateChecker accesses Videos storage group
----------------------------------+----------------------------
 Reporter:  thigger@…             |          Owner:
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  unknown
Component:  MythTV - General      |        Version:  0.27-fixes
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+----------------------------

Comment (by thigger@…):

 Is this what's responsible? (from
 mythtv/libs/libmythbase/storagegroup.cpp)

 I'm not sure I understand the logic (genuinely, I don't really get storage
 groups yet) - elsewhere in the code it talks about the 'Default' storage
 group but here it seems to go for Videos if it can't find what it needs?

 {{{
     if (s_groupToUseCache.contains(groupKey))
     {
         tmpGroup = s_groupToUseCache[groupKey];
     }
     else
     {
         if (StorageGroup::FindDirs(sgroup, host))
         {
             s_groupToUseCache[groupKey] = sgroup;
         }
         else
         {
             LOG(VB_FILE, LOG_DEBUG,
                     QString("GetGroupToUse(): "
                             "falling back to Videos Storage Group for host
 %1 "
                             "since it does not have a %2 Storage Group.")
                     .arg(host).arg(sgroup));

             tmpGroup = "Videos";
             s_groupToUseCache[groupKey] = tmpGroup;
         }
     }

     return tmpGroup;
 }}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12680#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list