summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert McNamara <rmcnamara@mythtv.org>2011-12-30 03:22:51 (GMT)
committer Robert McNamara <rmcnamara@mythtv.org>2011-12-30 03:22:51 (GMT)
commit662aa3d31c2145305dc30e30661247997c4df339 (patch)
treebed790ff3c867f1d231f19887d4d6b6c279745b7
parent4125a407a0775f159d0fa95001187457ee578684 (diff)
MythVideo: Avoid crashing if child item no longer exists.
Check validity of child metadata before attempting to play it. Fixes #10176.
-rw-r--r--mythplugins/mythvideo/mythvideo/videodlg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythplugins/mythvideo/mythvideo/videodlg.cpp b/mythplugins/mythvideo/mythvideo/videodlg.cpp
index 3fd6d24..93ad89d 100644
--- a/mythplugins/mythvideo/mythvideo/videodlg.cpp
+++ b/mythplugins/mythvideo/mythvideo/videodlg.cpp
@@ -422,7 +422,7 @@ namespace
else
VideoPlayerCommand::PlayerFor(item.get()).Play();
- if (item->GetChildID() > 0)
+ if (item->GetChildID() > 0 && video_list.byID(item->GetChildID()))
item = video_list.byID(item->GetChildID());
else
break;