movieplayer: display approx. playback position in infobar

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@891 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 65b1e20a83
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-11-27 (Sat, 27 Nov 2010)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2010-11-27 13:57:01 +00:00
parent 601946476e
commit 5e6c086bec
4 changed files with 22 additions and 16 deletions

View File

@@ -472,7 +472,9 @@ void CInfoViewer::show_current_next(bool new_chan, int epgpos)
}
}
void CInfoViewer::showMovieTitle( const int playState, const std::string Channel, const std::string g_file_epg, const std::string g_file_epg1)
void CInfoViewer::showMovieTitle(const int playState, const std::string Channel,
const std::string g_file_epg, const std::string g_file_epg1,
const int duration, const int curr_pos)
{
chack_channellogo_ca_SettingsChange();
aspectRatio = 0;
@@ -517,7 +519,10 @@ void CInfoViewer::showMovieTitle( const int playState, const std::string Channel
char runningPercent = file_prozent;
if (runningPercent > 100)
runningPercent = 100;
display_Info(g_file_epg.c_str(), g_file_epg1.c_str(), true, false, runningPercent);
char runningRest[32]; // %d can be 10 digits max...
sprintf(runningRest, "%d / %d min", (curr_pos + 30000) / 60000, (duration + 30000) / 60000);
display_Info(g_file_epg.c_str(), g_file_epg1.c_str(), true, false, runningPercent, NULL, runningRest);
const char *playicon = NULL;
switch (playState) {