[mythtv-commits] Ticket #12052: MythTV crashes when the filter in video list (tree) view is called after a video was deleted

MythTV noreply at mythtv.org
Mon Feb 10 05:22:49 UTC 2014


#12052: MythTV crashes when the filter in video list (tree) view is called after a
video was deleted
-------------------------------+-------------------------------------------
 Reporter:  angela.schmid@…    |          Owner:  Richard Hulme <peper03@…>
     Type:  Bug Report -       |         Status:  closed
  Crash                        |      Milestone:  0.27.1
 Priority:  blocker            |        Version:  Master Head
Component:  MythTV - Video     |     Resolution:  fixed
  Library                      |  Ticket locked:  0
 Severity:  high               |
 Keywords:  crash filter tree  |
  view                         |
-------------------------------+-------------------------------------------

Comment (by angela.schmid@…):

 I don't have Browse Filesystem enabled. The second patch does not work.

 [https://code.mythtv.org/trac/attachment/ticket/12052/0001-Only-force-a
 -refresh-of-the-metadata-rather-than-inv.patch] does not differ from
 [https://code.mythtv.org/trac/changeset/ffd38d1bba28aea710ad095c4e0844fe63381b38/mythtv]
 as m_metadata_list_type = VideoListImp::ltNone is within
 InvalidateCache().

 {{{
             if (ret)
             {
                 ret = m_metadata.purgeByID(video_id);
                 InvalidateCache();
                 // Force refresh
                 m_metadata_list_type = VideoListImp::ltNone;
             }
         }

         return ret;
     }

     void InvalidateCache() {
         // Set the type to none to avoid refreshList thinking it doesn't
         // need to.
         m_metadata_list_type = VideoListImp::ltNone;

         metadata_list ml;
         VideoMetadataListManager::loadAllFromDatabase(ml);
         m_metadata.setList(ml);
     }
 }}}

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


More information about the mythtv-commits mailing list