add more debugging
This commit is contained in:
parent
b5491102ef
commit
ab1c9f7c98
|
@ -693,6 +693,8 @@ Debug(2, "checking command Queue");
|
||||||
} // end if buffered playback
|
} // end if buffered playback
|
||||||
frame_count++;
|
frame_count++;
|
||||||
}
|
}
|
||||||
|
unsigned long sleep_time = (unsigned long)((1000000 * ZM_RATE_BASE)/((base_fps?base_fps:1)*abs(replay_rate*2)));
|
||||||
|
Debug(2,"Sleep for (%d) microseconds");
|
||||||
usleep( (unsigned long)((1000000 * ZM_RATE_BASE)/((base_fps?base_fps:1)*abs(replay_rate*2))) );
|
usleep( (unsigned long)((1000000 * ZM_RATE_BASE)/((base_fps?base_fps:1)*abs(replay_rate*2))) );
|
||||||
if ( ttl ) {
|
if ( ttl ) {
|
||||||
if ( (now.tv_sec - stream_start_time) > ttl ) {
|
if ( (now.tv_sec - stream_start_time) > ttl ) {
|
||||||
|
@ -704,6 +706,7 @@ Debug(2, "checking command Queue");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} // end while
|
} // end while
|
||||||
|
|
||||||
if ( buffered_playback ) {
|
if ( buffered_playback ) {
|
||||||
Debug( 1, "Cleaning swap files from %s", swap_path );
|
Debug( 1, "Cleaning swap files from %s", swap_path );
|
||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
|
|
|
@ -88,6 +88,7 @@ bool StreamBase::checkCommandQueue() {
|
||||||
//Error( "Partial message received, expected %d bytes, got %d", sizeof(msg), nbytes );
|
//Error( "Partial message received, expected %d bytes, got %d", sizeof(msg), nbytes );
|
||||||
//}
|
//}
|
||||||
else {
|
else {
|
||||||
|
Debug(2, "Message length is (%d)", nbytes );
|
||||||
processCommand( &msg );
|
processCommand( &msg );
|
||||||
return( true );
|
return( true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue