add debug
parent
ae8bfadcf7
commit
c9d52b47ba
|
@ -270,7 +270,7 @@ void MonitorStream::processCommand( const CmdMsg *msg ) {
|
||||||
Debug( 1, "Got SCALE command, to %d", scale );
|
Debug( 1, "Got SCALE command, to %d", scale );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case CMD_QUIT :
|
case CMD_QUIT :
|
||||||
{
|
{
|
||||||
Info ("User initiated exit - CMD_QUIT");
|
Info ("User initiated exit - CMD_QUIT");
|
||||||
break;
|
break;
|
||||||
|
@ -316,7 +316,7 @@ void MonitorStream::processCommand( const CmdMsg *msg ) {
|
||||||
//status_data.enabled = monitor->shared_data->active;
|
//status_data.enabled = monitor->shared_data->active;
|
||||||
status_data.enabled = monitor->trigger_data->trigger_state!=Monitor::TRIGGER_OFF;
|
status_data.enabled = monitor->trigger_data->trigger_state!=Monitor::TRIGGER_OFF;
|
||||||
status_data.forced = monitor->trigger_data->trigger_state==Monitor::TRIGGER_ON;
|
status_data.forced = monitor->trigger_data->trigger_state==Monitor::TRIGGER_ON;
|
||||||
Debug( 2, "L:%d, D:%d, P:%d, R:%d, d:%.3f, Z:%d, E:%d F:%d",
|
Debug( 2, "Buffer Level:%d, Delayed:%d, Paused:%d, Rate:%d, delay:%.3f, Zoom:%d, Enabled:%d Forced:%d",
|
||||||
status_data.buffer_level,
|
status_data.buffer_level,
|
||||||
status_data.delayed,
|
status_data.delayed,
|
||||||
status_data.paused,
|
status_data.paused,
|
||||||
|
@ -338,11 +338,15 @@ void MonitorStream::processCommand( const CmdMsg *msg ) {
|
||||||
//exit( -1 );
|
//exit( -1 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Debug(2, "NUmber of bytes sent: (%d)", nbytes );
|
||||||
|
|
||||||
// quit after sending a status, if this was a quit request
|
// quit after sending a status, if this was a quit request
|
||||||
if ((MsgCommand)msg->msg_data[0]==CMD_QUIT)
|
if ( (MsgCommand)msg->msg_data[0]==CMD_QUIT ) {
|
||||||
exit(0);
|
Debug(2,"Quitting");
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
Debug(2,"Updating framrate");
|
||||||
updateFrameRate( monitor->GetFPS() );
|
updateFrameRate( monitor->GetFPS() );
|
||||||
} // end void MonitorStream::processCommand( const CmdMsg *msg )
|
} // end void MonitorStream::processCommand( const CmdMsg *msg )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue