Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
ZLMediaKit
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
张翔宇
ZLMediaKit
Commits
d482cd29
Commit
d482cd29
authored
6 years ago
by
xiongziliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复编译警告问题
parent
b92e8376
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
8 行增加
和
5 行删除
+8
-5
src/Http/HttpClient.cpp
+1
-0
src/Http/HttpClient.h
+1
-1
src/Http/HttpDownloader.cpp
+1
-1
src/Http/HttpDownloader.h
+1
-1
src/Http/HttpRequester.cpp
+1
-1
src/Http/HttpRequester.h
+1
-1
src/Rtmp/Rtmp.h
+1
-0
src/Rtsp/RtspSplitter.cpp
+1
-0
没有找到文件。
src/Http/HttpClient.cpp
查看文件 @
d482cd29
...
...
@@ -24,6 +24,7 @@
* SOFTWARE.
*/
#include <cstdlib>
#include "HttpClient.h"
#include "Rtsp/Rtsp.h"
...
...
This diff is collapsed.
Click to expand it.
src/Http/HttpClient.h
查看文件 @
d482cd29
...
...
@@ -272,7 +272,7 @@ protected:
* @param recvedSize 已收数据大小(包含本次数据大小),当其等于totalSize时将触发onResponseCompleted回调
* @param totalSize 总数据大小
*/
virtual
void
onResponseBody
(
const
char
*
buf
,
size_t
size
,
size_t
recvedSize
,
size
_t
totalSize
){
virtual
void
onResponseBody
(
const
char
*
buf
,
int64_t
size
,
int64_t
recvedSize
,
int64
_t
totalSize
){
DebugL
<<
size
<<
" "
<<
recvedSize
<<
" "
<<
totalSize
;
};
...
...
This diff is collapsed.
Click to expand it.
src/Http/HttpDownloader.cpp
查看文件 @
d482cd29
...
...
@@ -79,7 +79,7 @@ int64_t HttpDownloader::onResponseHeader(const string& status,const HttpHeader&
return
-
1
;
}
void
HttpDownloader
::
onResponseBody
(
const
char
*
buf
,
size_t
size
,
size_t
recvedSize
,
size
_t
totalSize
)
{
void
HttpDownloader
::
onResponseBody
(
const
char
*
buf
,
int64_t
size
,
int64_t
recvedSize
,
int64
_t
totalSize
)
{
if
(
_saveFile
){
fwrite
(
buf
,
size
,
1
,
_saveFile
);
}
...
...
This diff is collapsed.
Click to expand it.
src/Http/HttpDownloader.h
查看文件 @
d482cd29
...
...
@@ -48,7 +48,7 @@ public:
}
private
:
int64_t
onResponseHeader
(
const
string
&
status
,
const
HttpHeader
&
headers
)
override
;
void
onResponseBody
(
const
char
*
buf
,
size_t
size
,
size_t
recvedSize
,
size
_t
totalSize
)
override
;
void
onResponseBody
(
const
char
*
buf
,
int64_t
size
,
int64_t
recvedSize
,
int64
_t
totalSize
)
override
;
void
onResponseCompleted
()
override
;
void
onDisconnect
(
const
SockException
&
ex
)
override
;
void
closeFile
();
...
...
This diff is collapsed.
Click to expand it.
src/Http/HttpRequester.cpp
查看文件 @
d482cd29
...
...
@@ -40,7 +40,7 @@ int64_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &h
return
0
;
}
void
HttpRequester
::
onResponseBody
(
const
char
*
buf
,
size_t
size
,
size_t
recvedSize
,
size
_t
totalSize
)
{
void
HttpRequester
::
onResponseBody
(
const
char
*
buf
,
int64_t
size
,
int64_t
recvedSize
,
int64
_t
totalSize
)
{
_strRecvBody
.
append
(
buf
,
size
);
}
...
...
This diff is collapsed.
Click to expand it.
src/Http/HttpRequester.h
查看文件 @
d482cd29
...
...
@@ -42,7 +42,7 @@ public:
void
clear
()
override
;
private
:
int64_t
onResponseHeader
(
const
string
&
status
,
const
HttpHeader
&
headers
)
override
;
void
onResponseBody
(
const
char
*
buf
,
size_t
size
,
size_t
recvedSize
,
size
_t
totalSize
)
override
;
void
onResponseBody
(
const
char
*
buf
,
int64_t
size
,
int64_t
recvedSize
,
int64
_t
totalSize
)
override
;
void
onResponseCompleted
()
override
;
void
onDisconnect
(
const
SockException
&
ex
)
override
;
private
:
...
...
This diff is collapsed.
Click to expand it.
src/Rtmp/Rtmp.h
查看文件 @
d482cd29
...
...
@@ -28,6 +28,7 @@
#include <memory>
#include <string>
#include <cstdlib>
#include "Util/util.h"
#include "Util/logger.h"
#include "Network/sockutil.h"
...
...
This diff is collapsed.
Click to expand it.
src/Rtsp/RtspSplitter.cpp
查看文件 @
d482cd29
...
...
@@ -24,6 +24,7 @@
* SOFTWARE.
*/
#include <cstdlib>
#include "RtspSplitter.h"
namespace
mediakit
{
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论