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
6f7d72ab
Commit
6f7d72ab
authored
Mar 15, 2012
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
eaab103f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+3
-3
No files found.
modules/services_discovery/sap.c
View file @
6f7d72ab
...
...
@@ -567,7 +567,7 @@ static void *Run( void *data )
mtime_t
now
=
mdate
();
/* A 1 hour timeout correspon
g
to the RFC Implicit timeout.
/* A 1 hour timeout correspon
d
to the RFC Implicit timeout.
* This timeout is tuned in the following loop. */
timeout
=
1000
*
60
*
60
;
...
...
@@ -578,7 +578,7 @@ static void *Run( void *data )
sap_announce_t
*
p_announce
=
p_sd
->
p_sys
->
pp_announces
[
i
];
mtime_t
i_last_period
=
now
-
p_announce
->
i_last
;
/* Remove the annoucement, if the last announcement was 1 hour ago
/* Remove the annou
n
cement, if the last announcement was 1 hour ago
* or if the last packet emitted was 3 times the average time
* between two packets */
if
(
(
p_announce
->
i_period_trust
>
5
&&
i_last_period
>
3
*
p_announce
->
i_period
)
||
...
...
@@ -795,7 +795,7 @@ static int ParseSAP( services_discovery_t *p_sd, const uint8_t *buf,
{
/* We don't support delete announcement as they can easily
* Be used to highjack an announcement by a third party.
* Intead we cleverly implement Implicit Announcement removal.
* In
s
tead we cleverly implement Implicit Announcement removal.
*
* if( b_need_delete )
* RemoveAnnounce( p_sd, p_sd->p_sys->pp_announces[i]);
...
...
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