Permalink
Browse files

Fix a potential segfault in MythDVDPlayer.

(cherry picked from commit f36b3f0)
  • Loading branch information...
1 parent b6dbb3e commit 6dbb6e98882f111368a4dc18bb10aa4adf015d47 @cpinkham cpinkham committed Jan 28, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 mythtv/libs/libmythtv/mythdvdplayer.cpp
@@ -260,6 +260,7 @@ void MythDVDPlayer::EventStart(void)
QString name;
QString serialid;
if (player_ctx->playingInfo->GetTitle().isEmpty() &&
+ player_ctx->buffer->DVD() &&
player_ctx->buffer->DVD()->GetNameAndSerialNum(name, serialid))
{
player_ctx->playingInfo->SetTitle(name);

0 comments on commit 6dbb6e9

Please sign in to comment.