mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
mk_media_source_broadcast_msg接口添加返回值
This commit is contained in:
parent
11fdffe84a
commit
c83a3c5639
@ -221,7 +221,7 @@ API_EXPORT int API_CALL mk_media_source_broadcast_msg(const mk_media_source ctx,
|
|||||||
Any any;
|
Any any;
|
||||||
Buffer::Ptr buffer = std::make_shared<BufferLikeString>(std::string(msg, len));
|
Buffer::Ptr buffer = std::make_shared<BufferLikeString>(std::string(msg, len));
|
||||||
any.set(std::move(buffer));
|
any.set(std::move(buffer));
|
||||||
src->broadcastMessage(any);
|
return src->broadcastMessage(any);
|
||||||
}
|
}
|
||||||
|
|
||||||
API_EXPORT int API_CALL mk_media_source_close(const mk_media_source ctx,int force){
|
API_EXPORT int API_CALL mk_media_source_close(const mk_media_source ctx,int force){
|
||||||
|
Loading…
Reference in New Issue
Block a user