Commit 6e9418c3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

RemoteOSD: Simplify, remove warning and remove headers

parent 69804c5f
...@@ -52,13 +52,11 @@ ...@@ -52,13 +52,11 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_plugin.h> #include <vlc_plugin.h>
#include <vlc_vout.h>
#include <vlc_filter.h> #include <vlc_filter.h>
#include <vlc_image.h> #include <vlc_keys.h> /* KEY_MODIFIER_CTRL */
#include <vlc_keys.h>
#include <vlc_network.h> #include <vlc_network.h> /* net_*, htonl */
#include <gcrypt.h> /* to encrypt password */ #include <gcrypt.h> /* to encrypt password */
#include <vlc_gcrypt.h> #include <vlc_gcrypt.h>
...@@ -802,14 +800,13 @@ static void* update_request_thread( void *obj ) ...@@ -802,14 +800,13 @@ static void* update_request_thread( void *obj )
} }
udr.incremental = 1; udr.incremental = 1;
mtime_t i_poll_interval_microsec = p_sys->i_vnc_poll_interval * 1000;
if( p_sys->b_vnc_poll) if( p_sys->b_vnc_poll)
{ {
vlc_cleanup_push( update_request_thread_cleanup, p_filter ); vlc_cleanup_push( update_request_thread_cleanup, p_filter );
for( ;; ) for( ;; )
{ {
msleep( i_poll_interval_microsec ); msleep( p_sys->i_vnc_poll_interval * 1000 );
if( !write_exact(p_filter, p_sys->i_socket, (char*)&udr, if( !write_exact(p_filter, p_sys->i_socket, (char*)&udr,
sz_rfbFramebufferUpdateRequestMsg)) sz_rfbFramebufferUpdateRequestMsg))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment