mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-09 22:58:28 +02:00
Merge branch 'master' into pu/fb-setmode
Origin commit data
------------------
Commit: 8569412113
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-26 (Sun, 26 Feb 2017)
This commit is contained in:
@@ -2087,7 +2087,7 @@ void CChannelList::paintItem(int pos, const bool firstpaint)
|
|||||||
pb.paint();
|
pb.paint();
|
||||||
}
|
}
|
||||||
//name
|
//name
|
||||||
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x+ 5+ numwidth+ 10+prg_offset, ypos+ fheight, width- numwidth- 40- 15-prg_offset, nameAndDescription, color);
|
g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]->RenderString(x + OFFSET_INNER_SMALL + numwidth + OFFSET_INNER_MID + prg_offset, ypos + fheight, width - numwidth - 4*OFFSET_INNER_MID - 15 - prg_offset, nameAndDescription, color);
|
||||||
}
|
}
|
||||||
if (!firstpaint && curr == selected)
|
if (!firstpaint && curr == selected)
|
||||||
updateVfd();
|
updateVfd();
|
||||||
|
@@ -1285,8 +1285,11 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
bool first_start = true;
|
bool first_start = true;
|
||||||
bool update_lcd = true;
|
bool update_lcd = true;
|
||||||
int eof = 0;
|
int eof = 0;
|
||||||
|
int eof2 = 0;
|
||||||
|
int position_tmp = 0;
|
||||||
bool at_eof = !(playstate >= CMoviePlayerGui::PLAY);;
|
bool at_eof = !(playstate >= CMoviePlayerGui::PLAY);;
|
||||||
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL;
|
keyPressed = CMoviePlayerGui::PLUGIN_PLAYSTATE_NORMAL;
|
||||||
|
|
||||||
while (playstate >= CMoviePlayerGui::PLAY)
|
while (playstate >= CMoviePlayerGui::PLAY)
|
||||||
{
|
{
|
||||||
if (update_lcd) {
|
if (update_lcd) {
|
||||||
@@ -1320,6 +1323,20 @@ void CMoviePlayerGui::PlayFileLoop(void)
|
|||||||
printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent);
|
printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent);
|
||||||
#endif
|
#endif
|
||||||
/* in case ffmpeg report incorrect values */
|
/* in case ffmpeg report incorrect values */
|
||||||
|
if((playstate == CMoviePlayerGui::PLAY) && (speed == 1)){
|
||||||
|
if(position_tmp != position){
|
||||||
|
position_tmp = position ;
|
||||||
|
eof2 = 0;
|
||||||
|
}else{
|
||||||
|
if (++eof2 > 6) {
|
||||||
|
at_eof = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
eof2 = 0;
|
||||||
|
}
|
||||||
int posdiff = duration - position;
|
int posdiff = duration - position;
|
||||||
if ((posdiff >= 0) && (posdiff < 2000) && timeshift == TSHIFT_MODE_OFF)
|
if ((posdiff >= 0) && (posdiff < 2000) && timeshift == TSHIFT_MODE_OFF)
|
||||||
{
|
{
|
||||||
|
@@ -1616,6 +1616,7 @@ int CTimerList::modifyTimer()
|
|||||||
if (!strlen(timer->recordingDir))
|
if (!strlen(timer->recordingDir))
|
||||||
strncpy(timer->recordingDir,g_settings.network_nfs_recordingdir.c_str(),sizeof(timer->recordingDir)-1);
|
strncpy(timer->recordingDir,g_settings.network_nfs_recordingdir.c_str(),sizeof(timer->recordingDir)-1);
|
||||||
timer_recordingDir = timer->recordingDir;
|
timer_recordingDir = timer->recordingDir;
|
||||||
|
strncpy(t_old.recordingDir, timer->recordingDir, sizeof(t_old.recordingDir)-1);
|
||||||
|
|
||||||
bool recDirEnabled = (g_settings.recording_type == RECORDING_FILE); // obsolete?
|
bool recDirEnabled = (g_settings.recording_type == RECORDING_FILE); // obsolete?
|
||||||
CMenuForwarder* m6 = new CMenuForwarder(LOCALE_TIMERLIST_RECORDING_DIR, recDirEnabled, timer_recordingDir, this, "rec_dir1", CRCInput::RC_green);
|
CMenuForwarder* m6 = new CMenuForwarder(LOCALE_TIMERLIST_RECORDING_DIR, recDirEnabled, timer_recordingDir, this, "rec_dir1", CRCInput::RC_green);
|
||||||
|
Reference in New Issue
Block a user