diff options
author | Christian <zerov83@gmail.com> | 2016-04-26 19:26:21 +0200 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-04-26 19:26:21 +0200 |
commit | 479c7fed73af475acb49508b64bcab788c2d372f (patch) | |
tree | ba551fd88d330469265a54bb0de31c5896851934 | |
parent | 8d0ed3dc01165fa8b84794276225175ec2094dd4 (diff) | |
download | vdr-plugin-plex-479c7fed73af475acb49508b64bcab788c2d372f.tar.gz vdr-plugin-plex-479c7fed73af475acb49508b64bcab788c2d372f.tar.bz2 |
Fixes segvault when displaying "streamselect"
menu, hopefully...
-rw-r--r-- | PVideo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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: |