[mythtv] [Patch] frontend segfault on delete recording
Mark Spieth
mark at dclabs.com.au
Tue Aug 17 09:14:05 EDT 2004
another segfault fixed.
happens since the preview of the file being deleted is still actually
playing. may be a better fix but this one works too.
cheers
mark
-------------- next part --------------
Index: playbackbox.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythfrontend/playbackbox.cpp,v
retrieving revision 1.166
diff -a -u -r1.166 playbackbox.cpp
--- playbackbox.cpp 6 Aug 2004 17:18:17 -0000 1.166
+++ playbackbox.cpp 17 Aug 2004 13:09:46 -0000
@@ -633,8 +633,17 @@
if (!nvp)
startPlayer(curitem);
- if (nvp->IsPlaying())
- state = kPlaying;
+ if (nvp)
+ {
+ if (nvp->IsPlaying())
+ state = kPlaying;
+ }
+ else
+ {
+ // seems to be already dead so clean up some more
+ killPlayer();
+ return;
+ }
}
if ((state == kStopping) || (state == kKilling))
More information about the mythtv-dev
mailing list