Skip to content

Commit

Permalink
Replace the empty path check in MHEngine::RequestExternalContent() wh…
Browse files Browse the repository at this point in the history
…ich was removed by the iPlayer patches. This may be causing a segfault reported on IRC
  • Loading branch information
stuartm committed Oct 8, 2012
1 parent a44eb9b commit 98a6b4b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mythtv/libs/libmythfreemheg/Engine.cpp
Expand Up @@ -974,6 +974,13 @@ void MHEngine::RequestExternalContent(MHIngredient *pRequester)
CancelExternalContentRequest(pRequester);

QString csPath = GetPathName(pRequester->m_ContentRef.m_ContentRef);

if (csPath.isEmpty())
{
MHLOG(MHLogWarning, "RequestExternalContent empty path");
return;
}

if (m_Context->CheckCarouselObject(csPath))
{
// Available now - pass it to the ingredient.
Expand Down

0 comments on commit 98a6b4b

Please sign in to comment.