summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-04-26 19:26:21 +0200
committerChristian <zerov83@gmail.com>2016-04-26 19:26:21 +0200
commit479c7fed73af475acb49508b64bcab788c2d372f (patch)
treeba551fd88d330469265a54bb0de31c5896851934
parent8d0ed3dc01165fa8b84794276225175ec2094dd4 (diff)
downloadvdr-plugin-plex-479c7fed73af475acb49508b64bcab788c2d372f.tar.gz
vdr-plugin-plex-479c7fed73af475acb49508b64bcab788c2d372f.tar.bz2
Fixes segvault when displaying "streamselect"
menu, hopefully...
-rw-r--r--PVideo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/PVideo.cpp b/PVideo.cpp
index 4a6196b..b08e1db 100644
--- a/PVideo.cpp
+++ b/PVideo.cpp
@@ -160,8 +160,6 @@ namespace plexclient {
std::string res = m_sTitle;
std::string seriesTitle = m_sGrandparentTitle;
- if (seriesTitle.empty() && m_pParent)
- seriesTitle = m_pParent->m_sGrandparentTitle;
switch (m_tType) {
case MediaType::MOVIE:
@@ -172,6 +170,7 @@ namespace plexclient {
}
break;
case MediaType::EPISODE:
+ if (seriesTitle.empty() && m_pParent) seriesTitle = m_pParent->m_sGrandparentTitle;
res = Poco::format("%s - %02dx%02d - %s", seriesTitle, m_iParentIndex, m_iIndex, m_sTitle);
break;
default: