[mythtv-commits] Ticket #12620: Deleting a video causes a segmentation fault and causes all tv recordings to be silently deleted

MythTV noreply at mythtv.org
Sat Feb 20 10:48:07 UTC 2016


#12620: Deleting a video causes a segmentation fault and causes all tv recordings
to be silently deleted
-------------------------------------------------+-------------------------
 Reporter:  William L. DeRieux IV                |          Owner:
  <williamderieux@…>                             |  jyavenard
     Type:  Bug Report - Crash                   |         Status:  new
 Priority:  blocker                              |      Milestone:  0.27.7
Component:  MythTV - Video Library               |        Version:  0.27.5
 Severity:  high                                 |     Resolution:
 Keywords:                                       |  Ticket locked:  0
-------------------------------------------------+-------------------------

Comment (by William L. DeRieux IV <williamderieux@…>):

 I was finally able to track down the root cause of this issue.

 It would seem, that, when accessing the video dialog new videos are
 automatically refreshed
 without needing to explicitly scan for new videos.

 However, unlike the explicit scan, the displayed videos are not inserted
 into the database.
 When you attempt to delete one of them, it attempts to do so by the
 video's id (which is always 0)
 unless you did an explicit scan and the database updated.

 I have attached some patches that adds the capability -- that when the
 video's id is 0 it will
 default to deleting by the video by it's full filename instead.


 -- the reason that my recorded tv programs were being deleted is because
 (the id for those was also 0)

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


More information about the mythtv-commits mailing list