#6
Beitrag
von Levithan » Do 13 Nov 2003, 19:30
Hmm, ich dachte ich hätte die bei mir auch ausgestauscht und es würde gehen. Teste ich gleich selbst nochmal, momentan läuft gerade eine Aufnahme.
Zur Not, wieder die alte nehmen oder im Code:
// ****************************************************
// Streaming starten
// ****************************************************
// auf Startzeitpunkt warten
i = StartTime - time(NULL);
if ( i > 0 ) sleep(i);
MainStopped = 0;
if ( -1 == pthread_create( &(MainLoopThread), 0, MainLoop, 0 ) ) {
perror("main() - pthread_create MainLoop");
exit(-1);
}
signal( SIGINT, &DummyHandler );
i = EndTime - time(NULL);
if ( i > 0 ) sleep(i);
MainStopped = 1;
while(MainStopped == 1) usleep( 300000 );
} // if (!ZapMode)
ersetzen mit:
// ****************************************************
// Streaming starten
// ****************************************************
// auf Startzeitpunkt warten
i = StartTime - time(NULL);
if ( i > 0 ) sleep(i);
MainStopped = 0;
if ( -1 == pthread_create( &(MainLoopThread), 0, MainLoop, 0 ) ) {
perror("main() - pthread_create MainLoop");
exit(-1);
}
int OutChar;
//signal( SIGINT, &DummyHandler );
if (TimeMode) {
i = EndTime - time(NULL);
if (i > 0 ) sleep(i);
} else {
do {
usleep(100000);
OutChar = fgetc( stdin);
} while (OutChar != 'q');
}
MainStopped = 1;
while(MainStopped == 1) usleep( 300000 );
} // if (!ZapMode)
Levi
SAGEM black 2xI aktuelles JtG Team Image
SAGEM grey 2xI aktuelles JtG Team Image
Software: Gentoo stage1, KDE 3.4
Hardware: P4-3 GHz@3,2, Asus P4P800E-Deluxe, GF-6800LE@400:850:16/6,2048 MB RAM, NEC 1300A (gepatcht)
Warum ich gegen SuSE bin
-----------------