Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8ab4e57b
Commit
8ab4e57b
authored
Sep 27, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check sending error (fixes #134; closes #514)
parent
7e0739c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+3
-6
No files found.
modules/stream_out/rtp.c
View file @
8ab4e57b
...
...
@@ -1378,10 +1378,8 @@ static void ThreadSend( vlc_object_t *p_this )
mwait
(
i_date
);
vlc_mutex_lock
(
&
id
->
lock_sink
);
#if 0
unsigned
deadc
=
0
;
/* How many dead sockets? */
int
deadv
[
id
->
sinkc
];
/* Dead sockets list */
#endif
for
(
int
i
=
0
;
i
<
id
->
sinkc
;
i
++
)
{
...
...
@@ -1396,8 +1394,9 @@ static void ThreadSend( vlc_object_t *p_this )
/* splice failed */
splice
(
fd
[
2
],
NULL
,
fd
[
4
],
NULL
,
len
,
0
);
#endif
if
(
send
(
id
->
sinkv
[
i
].
rtp_fd
,
out
->
p_buffer
,
len
,
0
)
<
0
)
/*deadv[deadc++] = id->sinkv[i].rtp_fd*/
;
if
(
(
send
(
id
->
sinkv
[
i
].
rtp_fd
,
out
->
p_buffer
,
len
,
0
)
<
0
)
&&
(
errno
!=
EAGAIN
)
)
deadv
[
deadc
++
]
=
id
->
sinkv
[
i
].
rtp_fd
;
}
vlc_mutex_unlock
(
&
id
->
lock_sink
);
...
...
@@ -1406,13 +1405,11 @@ static void ThreadSend( vlc_object_t *p_this )
splice
(
fd
[
0
],
NULL
,
fd
[
4
],
NULL
,
len
,
0
);
#endif
#if 0
for
(
unsigned
i
=
0
;
i
<
deadc
;
i
++
)
{
msg_Dbg
(
id
,
"removing socket %d"
,
deadv
[
i
]
);
rtp_del_sink
(
id
,
deadv
[
i
]
);
}
#endif
/* Hopefully we won't overflow the SO_MAXCONN accept queue */
while
(
id
->
listen_fd
!=
NULL
)
...
...
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