Skip to content

Commit

Permalink
MythVideo: Avoid crashing if child item no longer exists.
Browse files Browse the repository at this point in the history
Check validity of child metadata before attempting to play it.

Fixes #10176.
  • Loading branch information
Robert McNamara committed Dec 30, 2011
1 parent 4125a40 commit 662aa3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythplugins/mythvideo/mythvideo/videodlg.cpp
Expand Up @@ -422,7 +422,7 @@ namespace
else else
VideoPlayerCommand::PlayerFor(item.get()).Play(); VideoPlayerCommand::PlayerFor(item.get()).Play();


if (item->GetChildID() > 0) if (item->GetChildID() > 0 && video_list.byID(item->GetChildID()))
item = video_list.byID(item->GetChildID()); item = video_list.byID(item->GetChildID());
else else
break; break;
Expand Down

0 comments on commit 662aa3d

Please sign in to comment.