Permalink
Browse files

MythVideo: Avoid crashing if child item no longer exists.

Check validity of child metadata before attempting to play it.

Fixes #10176.
  • Loading branch information...
1 parent 4125a40 commit 662aa3d31c2145305dc30e30661247997c4df339 Robert McNamara committed Dec 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 662aa3d

Please sign in to comment.