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:24:18 (GMT)
commit6dbb6e98882f111368a4dc18bb10aa4adf015d47 (patch)
treeef27b281f8fa2b70d3e2d4a2fe7ab773482e307a
parentb6dbb3ed1a11bcc4a49c6dde758e5a1e0235fc0d (diff)
Fix a potential segfault in MythDVDPlayer.
(cherry picked from commit f36b3f020ef3e42c0bb33fc656988a93e599f63b)
-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 9e26b1a..c98a386 100644
--- a/mythtv/libs/libmythtv/mythdvdplayer.cpp
+++ b/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);