summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Pinkham <cpinkham@mythtv.org>2011-01-28 07:13:18 (GMT)
committer Chris Pinkham <cpinkham@mythtv.org>2011-01-28 07:13:18 (GMT)
commitf36b3f020ef3e42c0bb33fc656988a93e599f63b (patch)
treef3471d79654d406ebacf1ca07159e3cda36f3b6d
parent2f2ce34b76aa92acbc19dda460666432c36c0663 (diff)
Fix a segfault in MythDVDPlayer.
-rw-r--r--mythtv/libs/libmythtv/mythdvdplayer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mythtv/libs/libmythtv/mythdvdplayer.cpp b/mythtv/libs/libmythtv/mythdvdplayer.cpp
index 42c3e7f..a7825cd 100644
--- a/mythtv/libs/libmythtv/mythdvdplayer.cpp
+++ b/mythtv/libs/libmythtv/mythdvdplayer.cpp
@@ -251,6 +251,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);