[mythtv] [PATCH] segfault on delete

Jim Radford mythtv-dev@snowman.net
Sat, 23 Nov 2002 15:59:42 -0800


Hi Isaac,

Delete from the playback box using the 'd' key tries to update the
progressbar and the freespace which don't exist.  This should keep
that from happening.

-Jim

--- playbackbox.cpp.~1.33.~     2002-11-20 22:04:42.000000000 -0800
+++ playbackbox.cpp     2002-11-23 15:54:16.000000000 -0800
@@ -532,7 +532,8 @@
             changed(NULL);
 
         delete lvitem;
-        UpdateProgressBar();
+        if(type == Delete)
+            UpdateProgressBar();
     }    
     else if (m_context->GetNumSetting("PlaybackPreview") == 1)
         startPlayer(rec);