---
 server/red_worker.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index d0b3a60..30a829e 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -381,7 +381,7 @@ typedef struct StreamAgent {
     PipeItem create_item;
     PipeItem destroy_item;
     Stream *stream;
-    uint64_t lats_send_time;
+    uint64_t last_send_time;
 
     int frames;
     int drops;
@@ -7559,7 +7559,7 @@ static inline int 
red_marshall_stream_data(RedChannelClient *rcc,
 
     StreamAgent *agent = &display_channel->stream_agents[stream - 
worker->streams_buf];
     uint64_t time_now = red_now();
-    if (time_now - agent->lats_send_time < (1000 * 1000 * 1000) / agent->fps) {
+    if (time_now - agent->last_send_time < (1000 * 1000 * 1000) / agent->fps) {
         agent->frames--;
         return TRUE;
     }
@@ -7620,7 +7620,7 @@ static inline int 
red_marshall_stream_data(RedChannelClient *rcc,
     spice_marshall_msg_display_stream_data(base_marshaller, &stream_data);
     spice_marshaller_add_ref(base_marshaller,
                              display_channel->send_data.stream_outbuf, n);
-    agent->lats_send_time = time_now;
+    agent->last_send_time = time_now;
     return TRUE;
 }
 
@@ -7900,7 +7900,7 @@ static void 
red_display_marshall_stream_start(RedChannelClient *rcc,
     DisplayChannel *display_channel = SPICE_CONTAINEROF(rcc->channel, 
DisplayChannel, common.base);
     Stream *stream = agent->stream;
 
-    agent->lats_send_time = 0;
+    agent->last_send_time = 0;
     ASSERT(stream);
     red_channel_client_init_send_data(rcc, SPICE_MSG_DISPLAY_STREAM_CREATE,
         stream->current ? &stream->current->pipe_item : NULL);
-- 
1.7.4.4

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to