1
0
Fork 0
forked from len0rd/rockbox

for upcoming release: no diagnostic screen unless underruns happened

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4339 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jörg Hohensohn 2004-03-05 07:11:38 +00:00
parent 454379a10b
commit d93d20f6a4

View file

@ -759,7 +759,7 @@ int main(char* filename)
int file_size;
int fd; /* file descriptor handle */
int read_now, got_now;
int button;
int button = 0;
int retval;
// try to open the file
@ -865,6 +865,10 @@ int main(char* filename)
return PLUGIN_USB_CONNECTED;
}
#ifndef DEBUG // for release compilations, only display the stats in case of error
if (gStats.nAudioUnderruns || gStats.nVideoUnderruns)
#endif
{
// display statistics
rb->lcd_clear_display();
rb->snprintf(gPrint, sizeof(gPrint), "%d Audio Underruns", gStats.nAudioUnderruns);
@ -886,6 +890,7 @@ int main(char* filename)
rb->lcd_update();
button = WaitForButton();
}
return (button == SYS_USB_CONNECTED) ? PLUGIN_USB_CONNECTED : PLUGIN_OK;
}