From 4df354dc24a633120d2c19a233e7252e6d476129 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 22 Jun 2017 10:48:15 -0400 Subject: [PATCH] fix order of send_frame and break and fix if ( usleep ) which should be if ( delta_us ) --- src/zm_event.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 110faf2d2..4335f27f0 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -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 {