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

RemoteOSD: Simplify, remove warning and remove headers

parent 69804c5f
...@@ -52,14 +52,12 @@ ...@@ -52,14 +52,12 @@
#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>
#include "remoteosd_rfbproto.h" /* type definitions of the RFB protocol for VNC */ #include "remoteosd_rfbproto.h" /* type definitions of the RFB protocol for VNC */
...@@ -226,7 +224,7 @@ struct filter_sys_t ...@@ -226,7 +224,7 @@ struct filter_sys_t
uint16_t i_vnc_width; /* The with of the VNC screen */ uint16_t i_vnc_width; /* The with of the VNC screen */
uint16_t i_vnc_height; /* The height of the VNC screen */ uint16_t i_vnc_height; /* The height of the VNC screen */
uint32_t i_vnc_pixels; /* The pixels of the VNC screen */ uint32_t i_vnc_pixels; /* The pixels of the VNC screen */
bool b_alpha_from_vnc; /* Special ffnetdev alpha feature enabled ? */ bool b_alpha_from_vnc; /* Special ffnetdev alpha feature enabled ? */
...@@ -670,7 +668,7 @@ static void* vnc_worker_thread( void *obj ) ...@@ -670,7 +668,7 @@ static void* vnc_worker_thread( void *obj )
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
goto exit; goto exit;
} }
p_sys->i_vnc_pixels = p_sys->i_vnc_width * p_sys->i_vnc_height; p_sys->i_vnc_pixels = p_sys->i_vnc_width * p_sys->i_vnc_height;
vlc_mutex_unlock( &p_sys->lock ); vlc_mutex_unlock( &p_sys->lock );
...@@ -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