infoviewer.cpp: fix segfault when playing Web-TV first after reboot or new start Neutrino

- thx DboxOldie


Origin commit data
------------------
Branch: ni/coolstream
Commit: 9554f68ce9
Author: Frankenstone <dampf_acc@online.de>
Date: 2018-11-29 (Thu, 29 Nov 2018)



------------------
This commit was generated by Migit
This commit is contained in:
Frankenstone
2018-11-29 13:04:15 +01:00
committed by vanhofen
parent 9213ed52e6
commit 2310b23c10

View File

@@ -1041,7 +1041,7 @@ bool CInfoViewer::showLivestreamInfo()
std::string title = "";
std::vector<std::string> keys, values;
cPlayback *playback = CMoviePlayerGui::getInstance().getPlayback();
if (playback)
if (playback && playback->IsPlaying())
playback->GetMetadata(keys, values);
size_t count = keys.size();
if (count > 0)