movieplayer: add audio format to apidtitle

Origin commit data
------------------
Branch: ni/coolstream
Commit: 46163c0bcd
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-18 (Sat, 18 Sep 2021)

Origin message was:
------------------
- movieplayer: add audio format to apidtitle

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-09-18 20:35:00 +02:00
parent a950914dc6
commit b97b59e5bf

View File

@@ -3004,8 +3004,10 @@ std::string CMoviePlayerGui::getAPIDDesc(unsigned int i)
std::string apidtitle;
if (i < numpida)
getAudioName(apids[i], apidtitle);
if (apidtitle == "")
if (apidtitle.empty())
apidtitle = "Stream " + to_string(i);
bool enabled = true;
addAudioFormat(i, apidtitle, enabled);
return apidtitle;
}