Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
11786a10
Commit
11786a10
authored
11 years ago
by
Guillaume Roguez
Committed by
Tristan Matthews
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
video: skip RTCP to fix excessive RTP packet loss
Change-Id: I208ba3a176b40ebb229dd2912d22ee75b9617771
parent
ff522b2e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
daemon/src/video/socket_pair.cpp
+3
-0
3 additions, 0 deletions
daemon/src/video/socket_pair.cpp
with
3 additions
and
0 deletions
daemon/src/video/socket_pair.cpp
+
3
−
0
View file @
11786a10
...
@@ -232,6 +232,8 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
...
@@ -232,6 +232,8 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
/* build fdset to listen to RTP and RTCP packets */
/* build fdset to listen to RTP and RTCP packets */
n
=
poll
(
p
,
2
,
NET_POLL_TIMEOUT
);
n
=
poll
(
p
,
2
,
NET_POLL_TIMEOUT
);
if
(
n
>
0
)
{
if
(
n
>
0
)
{
// FIXME:WORKAROUND: prevent excessive packet loss
#if 0
/* first try RTCP */
/* first try RTCP */
if (p[1].revents & POLLIN) {
if (p[1].revents & POLLIN) {
from_len = sizeof(from);
from_len = sizeof(from);
...
@@ -248,6 +250,7 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
...
@@ -248,6 +250,7 @@ int SocketPair::readCallback(void *opaque, uint8_t *buf, int buf_size)
}
}
break;
break;
}
}
#endif
/* then RTP */
/* then RTP */
if
(
p
[
0
].
revents
&
POLLIN
)
{
if
(
p
[
0
].
revents
&
POLLIN
)
{
from_len
=
sizeof
(
from
);
from_len
=
sizeof
(
from
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment