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
2014-07-06 20:17:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c493e9896ba06e9989da188fba4bb3d520ec40a
8c493e98
1 parent
25548369
fix #49, open the sample access by default.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
6 行增加
和
0 行删除
trunk/src/rtmp/srs_protocol_rtmp.cpp
trunk/src/rtmp/srs_protocol_rtmp.cpp
查看文件 @
8c493e9
...
...
@@ -1086,6 +1086,12 @@ int SrsRtmpServer::start_play(int stream_id)
// |RtmpSampleAccess(false, false)
if
(
true
)
{
SrsSampleAccessPacket
*
pkt
=
new
SrsSampleAccessPacket
();
// allow audio/video sample.
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/49
pkt
->
audio_sample_access
=
true
;
pkt
->
video_sample_access
=
true
;
if
((
ret
=
protocol
->
send_and_free_packet
(
pkt
,
stream_id
))
!=
ERROR_SUCCESS
)
{
srs_error
(
"send |RtmpSampleAccess(false, false) message failed. ret=%d"
,
ret
);
return
ret
;
...
...
请
注册
或
登录
后发表评论