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
e1b14641
Commit
e1b14641
authored
May 24, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove non-sensical connect->listen transition
Thank you big time for committing stuff against people's review.
parent
db47cf33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
29 deletions
+0
-29
modules/access_output/rtmp.c
modules/access_output/rtmp.c
+0
-29
No files found.
modules/access_output/rtmp.c
View file @
e1b14641
...
...
@@ -181,36 +181,7 @@ static int Open( vlc_object_t *p_this )
/* Open connection */
p_sys
->
p_thread
->
fd
=
net_ConnectTCP
(
p_access
,
p_sys
->
p_thread
->
url
.
psz_host
,
p_sys
->
p_thread
->
url
.
i_port
);
if
(
p_sys
->
p_thread
->
fd
==
-
1
)
{
int
*
p_fd_listen
;
msg_Warn
(
p_access
,
"cannot connect to %s:%d"
,
p_sys
->
p_thread
->
url
.
psz_host
,
p_sys
->
p_thread
->
url
.
i_port
);
msg_Dbg
(
p_access
,
"switching to passive mode"
);
p_sys
->
active
=
0
;
p_fd_listen
=
net_ListenTCP
(
p_access
,
p_sys
->
p_thread
->
url
.
psz_host
,
p_sys
->
p_thread
->
url
.
i_port
);
if
(
p_fd_listen
==
NULL
)
{
msg_Warn
(
p_access
,
"cannot listen to %s port %i"
,
p_sys
->
p_thread
->
url
.
psz_host
,
p_sys
->
p_thread
->
url
.
i_port
);
goto
error2
;
}
p_sys
->
p_thread
->
fd
=
net_Accept
(
p_access
,
p_fd_listen
,
-
1
);
net_ListenClose
(
p_fd_listen
);
if
(
rtmp_handshake_passive
(
p_this
,
p_sys
->
p_thread
->
fd
)
<
0
)
{
msg_Err
(
p_access
,
"handshake passive failed"
);
goto
error2
;
}
}
else
{
msg_Err
(
p_access
,
"to be implemented"
);
goto
error2
;
}
if
(
vlc_thread_create
(
p_sys
->
p_thread
,
"rtmp control thread"
,
ThreadControl
,
VLC_THREAD_PRIORITY_INPUT
,
false
)
)
...
...
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