fix order of send_frame and break and fix if ( usleep ) which should be if ( delta_us )

This commit is contained in:
Isaac Connor
2017-06-22 10:48:15 -04:00
parent eac6537d7c
commit 4df354dc24

View File

@@ -913,9 +913,8 @@ void EventStream::processCommand( const CmdMsg *msg ) {
zoom = 500;
break;
}
break;
send_frame = true;
break;
}
case CMD_ZOOMOUT :
{
@@ -1342,7 +1341,7 @@ void EventStream::runStream() {
curr_frame_id += replay_rate>0?1:-1;
if ( send_frame && type != STREAM_MPEG ) {
Debug( 3, "dUs: %d", delta_us );
if ( usleep )
if ( delta_us )
usleep( delta_us );
}
} else {