[mythtv] crash on mythvideo-rescan
Markus Schulz
msc at antzsystem.de
Fri Feb 18 22:09:33 UTC 2011
hello,
if i rescan my video storage group in mythvideo i got a segfault.
the following was a workaround:
diff --git a/mythtv/libs/libmythui/mythprogressdialog.cpp
b/mythtv/libs/libmythui/mythprogressdialog.cpp
index 733d7c7..d2cb113 100644
--- a/mythtv/libs/libmythui/mythprogressdialog.cpp
+++ b/mythtv/libs/libmythui/mythprogressdialog.cpp
@@ -169,6 +169,7 @@ void MythUIProgressDialog::customEvent(QEvent
*event)
if (event->type() == ProgressUpdateEvent::kEventType)
{
ProgressUpdateEvent *pue =
dynamic_cast<ProgressUpdateEvent*>(event);
+ if (pue == NULL) return;
QString message = pue->GetMessage();
if (!message.isEmpty())
looks like the event was from a different type (dynamic_cast results to
NULL).
regards,
msc
More information about the mythtv-dev
mailing list