mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 11:53:25 +00:00
Indent activity.c
This commit is contained in:
parent
2ed9789f9c
commit
f9c26d8684
@ -7,20 +7,20 @@ relevant events. */
|
||||
static int credits_shown=0;
|
||||
unsigned long net_activity_gui=0;
|
||||
|
||||
/* Print current progress. For percentaje, -1 -> streaming mode */
|
||||
void activity_progress (int percentaje, int cur_min, int cur_sec)
|
||||
/* Print current progress. For percentage, -1 -> streaming mode */
|
||||
void activity_progress (int percentage, int cur_min, int cur_sec)
|
||||
{
|
||||
if (!ccx_options.no_progress_bar)
|
||||
{
|
||||
if (percentaje==-1)
|
||||
if (percentage==-1)
|
||||
mprint ("\rStreaming | %02d:%02d", cur_min, cur_sec);
|
||||
else
|
||||
mprint ("\r%3d%% | %02d:%02d",percentaje, cur_min, cur_sec);
|
||||
mprint ("\r%3d%% | %02d:%02d",percentage, cur_min, cur_sec);
|
||||
}
|
||||
fflush (stdout);
|
||||
if (ccx_options.gui_mode_reports)
|
||||
{
|
||||
fprintf (stderr, "###PROGRESS#%d#%d#%d\n", percentaje, cur_min, cur_sec);
|
||||
fprintf (stderr, "###PROGRESS#%d#%d#%d\n", percentage, cur_min, cur_sec);
|
||||
fflush (stderr);
|
||||
}
|
||||
}
|
||||
@ -34,7 +34,8 @@ void activity_input_file_open (const char *filename)
|
||||
}
|
||||
}
|
||||
|
||||
void activity_library_process(enum ccx_common_logging_gui message_type, ...){
|
||||
void activity_library_process(enum ccx_common_logging_gui message_type, ...)
|
||||
{
|
||||
if (ccx_options.gui_mode_reports){
|
||||
va_list args;
|
||||
va_start(args, message_type);
|
||||
@ -99,7 +100,7 @@ void activity_program_number (unsigned program_number)
|
||||
{
|
||||
if (ccx_options.gui_mode_reports)
|
||||
{
|
||||
fprintf (stderr, "###TSPROGRAMNUMBER#%u\n",program_number);
|
||||
fprintf (stderr, "###TSPROGRAMNUMBER#%u\n", program_number);
|
||||
fflush (stderr);
|
||||
}
|
||||
}
|
||||
@ -108,7 +109,7 @@ void activity_report_version (void)
|
||||
{
|
||||
if (ccx_options.gui_mode_reports)
|
||||
{
|
||||
fprintf (stderr, "###VERSION#CCExtractor#%s\n",VERSION);
|
||||
fprintf (stderr, "###VERSION#CCExtractor#%s\n", VERSION);
|
||||
fflush (stderr);
|
||||
}
|
||||
}
|
||||
@ -117,7 +118,7 @@ void activity_report_data_read (void)
|
||||
{
|
||||
if (ccx_options.gui_mode_reports)
|
||||
{
|
||||
fprintf (stderr, "###DATAREAD#%lu\n",net_activity_gui/1000);
|
||||
fprintf (stderr, "###DATAREAD#%lu\n", net_activity_gui/1000);
|
||||
fflush (stderr);
|
||||
}
|
||||
}
|
||||
@ -127,7 +128,7 @@ void activity_header (void)
|
||||
{
|
||||
if (!credits_shown)
|
||||
{
|
||||
credits_shown=1;
|
||||
credits_shown = 1;
|
||||
mprint ("CCExtractor %s, Carlos Fernandez Sanz, Volker Quetschke.\n", VERSION);
|
||||
mprint ("Teletext portions taken from Petr Kutalek's telxcc\n");
|
||||
mprint ("--------------------------------------------------------------------------\n");
|
||||
|
Loading…
Reference in New Issue
Block a user