mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
fixup tags
This commit is contained in:
@@ -1483,6 +1483,7 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
updateLcd();
|
updateLcd();
|
||||||
}
|
}
|
||||||
if (first_start) {
|
if (first_start) {
|
||||||
|
usleep(50000);
|
||||||
callInfoViewer();
|
callInfoViewer();
|
||||||
first_start = false;
|
first_start = false;
|
||||||
}
|
}
|
||||||
@@ -2074,7 +2075,7 @@ void CMoviePlayerGui::callInfoViewer(bool init_vzap_it)
|
|||||||
|
|
||||||
if (p_movie_info) {
|
if (p_movie_info) {
|
||||||
|
|
||||||
if(duration == 0)
|
if(duration <= 0)
|
||||||
UpdatePosition();
|
UpdatePosition();
|
||||||
|
|
||||||
MI_MOVIE_INFO *mi;
|
MI_MOVIE_INFO *mi;
|
||||||
@@ -2101,14 +2102,12 @@ void CMoviePlayerGui::callInfoViewer(bool init_vzap_it)
|
|||||||
|
|
||||||
g_InfoViewer->showMovieTitle(playstate, mi->epgId >>16, channelName, mi->epgTitle, mi->epgInfo1,
|
g_InfoViewer->showMovieTitle(playstate, mi->epgId >>16, channelName, mi->epgTitle, mi->epgInfo1,
|
||||||
duration, position, repeat_mode, init_vzap_it ? 0 /*IV_MODE_DEFAULT*/ : 1 /*IV_MODE_VIRTUAL_ZAP*/);
|
duration, position, repeat_mode, init_vzap_it ? 0 /*IV_MODE_DEFAULT*/ : 1 /*IV_MODE_VIRTUAL_ZAP*/);
|
||||||
unlink("/tmp/cover.jpg");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* not moviebrowser => use the filename as title */
|
/* not moviebrowser => use the filename as title */
|
||||||
CVFD::getInstance()->ShowText(pretty_name.c_str());
|
CVFD::getInstance()->ShowText(pretty_name.c_str());
|
||||||
g_InfoViewer->showMovieTitle(playstate, 0, pretty_name, info_1, info_2, duration, position, repeat_mode);
|
g_InfoViewer->showMovieTitle(playstate, 0, pretty_name, info_1, info_2, duration, position, repeat_mode);
|
||||||
unlink("/tmp/cover.jpg");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CMoviePlayerGui::getAudioName(int apid, std::string &apidtitle)
|
bool CMoviePlayerGui::getAudioName(int apid, std::string &apidtitle)
|
||||||
@@ -2557,7 +2556,7 @@ void CMoviePlayerGui::handleMovieBrowser(neutrino_msg_t msg, int /*position*/)
|
|||||||
|
|
||||||
void CMoviePlayerGui::UpdatePosition()
|
void CMoviePlayerGui::UpdatePosition()
|
||||||
{
|
{
|
||||||
if (playback->GetPosition(position, duration)) {
|
while (!playback->GetPosition(position, duration)) {
|
||||||
if (duration > 100)
|
if (duration > 100)
|
||||||
file_prozent = (unsigned char) (position / (duration / 100));
|
file_prozent = (unsigned char) (position / (duration / 100));
|
||||||
FileTimeOSD->update(position, duration);
|
FileTimeOSD->update(position, duration);
|
||||||
|
Reference in New Issue
Block a user