Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1549 → Rev 1550

/demos/trunk/bttvdemo/bttv.c
62,7 → 62,7
void program_end(void *arg)
{
 
sys_end();
exit(0);
}
 
268,7 → 268,7
 
if (argc < 2) {
sys_shutdown_message("ERROR: Enter the input channel [ex> %s 0]\n",argv[0]);
sys_end();
exit(1);
}
 
channel = atoi(argv[1]);
288,13 → 288,13
grab_task_pid = task_create("GrabTask",grab_task,&gt,NULL);
if (grab_task_pid == NIL) {
sys_shutdown_message("ERROR: Cannot create grab task\n");
sys_end();
exit(1);
}
 
elaborate_task_pid = task_create("ElaborateTask",elaborate_task,&et,NULL);
if (grab_task_pid == NIL) {
sys_shutdown_message("ERROR: Cannot create elaborate task\n");
sys_end();
exit(1);
}
 
#ifdef COLOR
333,7 → 333,7
 
sleep(1);
 
sys_end();
exit(1);
 
return 0;
 
/demos/trunk/bttvdemo/initfile.c
93,7 → 93,7
shutdown_task_PID = task_create("Shutdown Task",shutdown_task_body,&nrt,NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
sys_end();
exit(1);
}
 
}
124,7 → 124,7
cprintf("Error: Cannot open graphical mode\n");
KEYB26_close();
INPUT26_close();
sys_end();
exit(1);
}
FB26_use_grx(FRAME_BUFFER_DEVICE);
170,8 → 170,6
 
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
 
sys_abort_shutdown(0);
 
return NULL;
 
}