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
30fd105f
Commit
30fd105f
authored
Feb 01, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics (netsync).
parent
1c1ae9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/control/netsync.c
modules/control/netsync.c
+8
-7
No files found.
modules/control/netsync.c
View file @
30fd105f
...
...
@@ -50,8 +50,8 @@
/*****************************************************************************
* Module descriptor
*****************************************************************************/
static
int
Activate
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
#define NETSYNC_TEXT N_( "Network master clock" )
#define NETSYNC_LONGTEXT N_( "When set then " \
...
...
@@ -80,7 +80,7 @@ vlc_module_begin ()
NETSYNC_TIMEOUT_TEXT
,
NETSYNC_TIMEOUT_LONGTEXT
,
true
)
set_capability
(
"interface"
,
0
)
set_callbacks
(
Activate
,
Close
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/*****************************************************************************
...
...
@@ -91,7 +91,7 @@ static void Run( intf_thread_t *p_intf );
/*****************************************************************************
* Activate: initialize and create stuff
*****************************************************************************/
static
int
Activate
(
vlc_object_t
*
p_this
)
static
int
Open
(
vlc_object_t
*
p_this
)
{
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
int
fd
;
...
...
@@ -140,12 +140,13 @@ static void Run( intf_thread_t *p_intf )
int
canc
=
vlc_savecancel
();
input_thread_t
*
p_input
=
NULL
;
char
p_data
[
MAX_MSG_LENGTH
];
int
i_socket
;
int
i_socket
=
(
intptr_t
)
p_intf
->
p_sys
;
playlist_t
*
p_playlist
=
pl_Hold
(
p_intf
);
int
i_timeout
=
__MIN
(
500
,
var_InheritInteger
(
p_intf
,
"netsync-timeout"
)
);
int
i_timeout
=
var_InheritInteger
(
p_intf
,
"netsync-timeout"
);
if
(
i_timeout
<
500
)
i_timeout
=
500
;
bool
b_master
=
var_InheritBool
(
p_intf
,
"netsync-master"
);
i_socket
=
(
intptr_t
)
p_intf
->
p_sys
;
/* High priority thread */
vlc_thread_set_priority
(
p_intf
,
VLC_THREAD_PRIORITY_INPUT
);
...
...
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