Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
6e9418c3
Commit
6e9418c3
authored
Aug 18, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RemoteOSD: Simplify, remove warning and remove headers
parent
69804c5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
modules/video_filter/remoteosd.c
modules/video_filter/remoteosd.c
+6
-9
No files found.
modules/video_filter/remoteosd.c
View file @
6e9418c3
...
...
@@ -52,14 +52,12 @@
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout.h>
#include <vlc_filter.h>
#include <vlc_image.h>
#include <vlc_keys.h>
#include <vlc_keys.h>
/* KEY_MODIFIER_CTRL */
#include <vlc_network.h>
#include <gcrypt.h>
/* to encrypt password */
#include <vlc_network.h>
/* net_*, htonl */
#include <gcrypt.h>
/* to encrypt password */
#include <vlc_gcrypt.h>
#include "remoteosd_rfbproto.h"
/* type definitions of the RFB protocol for VNC */
...
...
@@ -226,7 +224,7 @@ struct filter_sys_t
uint16_t
i_vnc_width
;
/* The with 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 ? */
...
...
@@ -670,7 +668,7 @@ static void* vnc_worker_thread( void *obj )
vlc_mutex_unlock
(
&
p_sys
->
lock
);
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
);
...
...
@@ -802,14 +800,13 @@ static void* update_request_thread( void *obj )
}
udr
.
incremental
=
1
;
mtime_t
i_poll_interval_microsec
=
p_sys
->
i_vnc_poll_interval
*
1000
;
if
(
p_sys
->
b_vnc_poll
)
{
vlc_cleanup_push
(
update_request_thread_cleanup
,
p_filter
);
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
,
sz_rfbFramebufferUpdateRequestMsg
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment