Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2015-10-20 10:17:48 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91e9fc7e5bf81f495a11a49c7a1c216f52675aac
91e9fc7e
1 parent
5de65d41
fix typo of INVLIAD to INVALID
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
trunk/src/app/srs_app_http_hooks.cpp
trunk/src/kernel/srs_kernel_error.hpp
trunk/src/app/srs_app_http_hooks.cpp
查看文件 @
91e9fc7
...
...
@@ -431,14 +431,14 @@ int SrsHttpHooks::do_post(std::string url, std::string req, int& code, string& r
// ensure the http status is ok.
// https://github.com/simple-rtmp-server/srs/issues/158
if
(
code
!=
SRS_CONSTS_HTTP_OK
)
{
ret
=
ERROR_HTTP_STATUS_INV
LIA
D
;
ret
=
ERROR_HTTP_STATUS_INV
ALI
D
;
srs_error
(
"invalid response status=%d. ret=%d"
,
code
,
ret
);
return
ret
;
}
// should never be empty.
if
(
res
.
empty
())
{
ret
=
ERROR_HTTP_DATA_INV
LIA
D
;
ret
=
ERROR_HTTP_DATA_INV
ALI
D
;
srs_error
(
"invalid empty response. ret=%d"
,
ret
);
return
ret
;
}
...
...
@@ -446,7 +446,7 @@ int SrsHttpHooks::do_post(std::string url, std::string req, int& code, string& r
// parse string res to json.
SrsJsonAny
*
info
=
SrsJsonAny
::
loads
((
char
*
)
res
.
c_str
());
if
(
!
info
)
{
ret
=
ERROR_HTTP_DATA_INV
LIA
D
;
ret
=
ERROR_HTTP_DATA_INV
ALI
D
;
srs_error
(
"invalid response %s. ret=%d"
,
res
.
c_str
(),
ret
);
return
ret
;
}
...
...
@@ -455,7 +455,7 @@ int SrsHttpHooks::do_post(std::string url, std::string req, int& code, string& r
// response error code in string.
if
(
!
info
->
is_object
())
{
if
(
res
!=
SRS_HTTP_RESPONSE_OK
)
{
ret
=
ERROR_HTTP_DATA_INV
LIA
D
;
ret
=
ERROR_HTTP_DATA_INV
ALI
D
;
srs_error
(
"invalid response number %s. ret=%d"
,
res
.
c_str
(),
ret
);
return
ret
;
}
...
...
trunk/src/kernel/srs_kernel_error.hpp
查看文件 @
91e9fc7
...
...
@@ -103,7 +103,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
///////////////////////////////////////////////////////
#define ERROR_RTMP_PLAIN_REQUIRED 2000
#define ERROR_RTMP_CHUNK_START 2001
#define ERROR_RTMP_MSG_INV
LIA
D_SIZE 2002
#define ERROR_RTMP_MSG_INV
ALI
D_SIZE 2002
#define ERROR_RTMP_AMF0_DECODE 2003
#define ERROR_RTMP_AMF0_INVALID 2004
#define ERROR_RTMP_REQ_CONNECT 2005
...
...
@@ -170,7 +170,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_HLS_AAC_FRAME_LENGTH 3005
#define ERROR_HLS_AVC_SAMPLE_SIZE 3006
#define ERROR_HTTP_PARSE_URI 3007
#define ERROR_HTTP_DATA_INV
LIA
D 3008
#define ERROR_HTTP_DATA_INV
ALI
D 3008
#define ERROR_HTTP_PARSE_HEADER 3009
#define ERROR_HTTP_HANDLER_MATCH_URL 3010
#define ERROR_HTTP_HANDLER_INVALID 3011
...
...
@@ -238,7 +238,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_HTTP_URL_NOT_CLEAN 4002
#define ERROR_HTTP_CONTENT_LENGTH 4003
#define ERROR_HTTP_LIVE_STREAM_EXT 4004
#define ERROR_HTTP_STATUS_INV
LIA
D 4005
#define ERROR_HTTP_STATUS_INV
ALI
D 4005
#define ERROR_KERNEL_AAC_STREAM_CLOSED 4006
#define ERROR_AAC_DECODE_ERROR 4007
#define ERROR_KERNEL_MP3_STREAM_CLOSED 4008
...
...
请
注册
或
登录
后发表评论