mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
No more unnecessary display of 'normal play mode'
This commit is contained in:
parent
d8aef25cbc
commit
bf8948498d
2
HISTORY
2
HISTORY
@ -769,4 +769,4 @@ Video Disk Recorder Revision History
|
|||||||
(Skip +/-60s); fixed timeout when pressing '0' to set an editing mark while
|
(Skip +/-60s); fixed timeout when pressing '0' to set an editing mark while
|
||||||
the progress display is not shown; mode display is shown after progress
|
the progress display is not shown; mode display is shown after progress
|
||||||
display is closed; pressing "Ok" while the mode display is on brings up
|
display is closed; pressing "Ok" while the mode display is on brings up
|
||||||
the progress display;
|
the progress display; no more unnecessary display of "normal play mode".
|
||||||
|
7
menu.c
7
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 1.124 2001/09/21 16:16:47 kls Exp $
|
* $Id: menu.c 1.125 2001/09/21 16:22:15 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -2424,15 +2424,18 @@ void cReplayControl::ShowMode(void)
|
|||||||
bool Play, Forward;
|
bool Play, Forward;
|
||||||
int Speed;
|
int Speed;
|
||||||
if (dvbApi->GetReplayMode(Play, Forward, Speed)) {
|
if (dvbApi->GetReplayMode(Play, Forward, Speed)) {
|
||||||
|
bool NormalPlay = (Play && Speed == -1);
|
||||||
|
|
||||||
if (!visible) {
|
if (!visible) {
|
||||||
|
if (NormalPlay)
|
||||||
|
return; // no need to do indicate ">" unless there was a different mode displayed before
|
||||||
// open small display
|
// open small display
|
||||||
Interface->Open(9, -1);
|
Interface->Open(9, -1);
|
||||||
Interface->Clear();
|
Interface->Clear();
|
||||||
visible = modeOnly = true;
|
visible = modeOnly = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (modeOnly && !timeoutShow && Speed == -1 && Play)
|
if (modeOnly && !timeoutShow && NormalPlay)
|
||||||
timeoutShow = time(NULL) + MODETIMEOUT;
|
timeoutShow = time(NULL) + MODETIMEOUT;
|
||||||
const char *Mode;
|
const char *Mode;
|
||||||
if (Speed == -1) Mode = Play ? " > " : " || ";
|
if (Speed == -1) Mode = Play ? " > " : " || ";
|
||||||
|
Loading…
Reference in New Issue
Block a user