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
2013-10-22 19:51:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a0d33335a3ffd76da04057f67404cfa6abd9513
0a0d3333
1 parent
52a454c4
rename base message to ISrsMessage
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
8 行增加
和
0 行删除
trunk/src/core/srs_core_source.cpp
trunk/src/core/srs_core_source.hpp
trunk/src/core/srs_core_source.cpp
查看文件 @
0a0d333
...
...
@@ -63,6 +63,12 @@ SrsSource::SrsSource(std::string _stream_url)
SrsSource
::~
SrsSource
()
{
std
::
vector
<
SrsConsumer
*>::
iterator
it
;
for
(
it
=
consumers
.
begin
();
it
!=
consumers
.
end
();
++
it
)
{
SrsConsumer
*
consumer
=
*
it
;
srs_freep
(
consumer
);
}
consumers
.
clear
();
}
int
SrsSource
::
on_meta_data
(
SrsCommonMessage
*
msg
,
SrsOnMetaDataPacket
*
metadata
)
...
...
@@ -90,6 +96,7 @@ int SrsSource::on_video(SrsCommonMessage* audio)
SrsConsumer
*
SrsSource
::
create_consumer
()
{
SrsConsumer
*
consumer
=
new
SrsConsumer
();
consumers
.
push_back
(
consumer
);
return
consumer
;
}
...
...
trunk/src/core/srs_core_source.hpp
查看文件 @
0a0d333
...
...
@@ -71,6 +71,7 @@ public:
static
SrsSource
*
find
(
std
::
string
stream_url
);
private
:
std
::
string
stream_url
;
std
::
vector
<
SrsConsumer
*>
consumers
;
public
:
SrsSource
(
std
::
string
_stream_url
);
virtual
~
SrsSource
();
...
...
请
注册
或
登录
后发表评论