Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
177bcc95
Commit
177bcc95
authored
May 24, 2012
by
Samuel Pitoiset
Committed by
Martin Storsjö
May 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtmp: Pass the proper return code in rtmp_handshake
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
bba287fd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
rtmpproto.c
libavformat/rtmpproto.c
+7
-6
No files found.
libavformat/rtmpproto.c
View file @
177bcc95
...
...
@@ -639,15 +639,16 @@ static int rtmp_handshake(URLContext *s, RTMPContext *rt)
return
ret
;
}
i
=
ffurl_read_complete
(
rt
->
stream
,
serverdata
,
RTMP_HANDSHAKE_PACKET_SIZE
+
1
);
if
(
i
!=
RTMP_HANDSHAKE_PACKET_SIZE
+
1
)
{
i
f
((
ret
=
ffurl_read_complete
(
rt
->
stream
,
serverdata
,
RTMP_HANDSHAKE_PACKET_SIZE
+
1
))
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot read RTMP handshake response
\n
"
);
return
AVERROR
(
EIO
)
;
return
ret
;
}
i
=
ffurl_read_complete
(
rt
->
stream
,
clientdata
,
RTMP_HANDSHAKE_PACKET_SIZE
);
if
(
i
!=
RTMP_HANDSHAKE_PACKET_SIZE
)
{
if
((
ret
=
ffurl_read_complete
(
rt
->
stream
,
clientdata
,
RTMP_HANDSHAKE_PACKET_SIZE
))
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Cannot read RTMP handshake response
\n
"
);
return
AVERROR
(
EIO
)
;
return
ret
;
}
av_log
(
s
,
AV_LOG_DEBUG
,
"Server version %d.%d.%d.%d
\n
"
,
...
...
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