mk_media_source_broadcast_msg接口添加返回值

This commit is contained in:
xia-chu 2023-09-02 13:06:42 +08:00
parent 11fdffe84a
commit c83a3c5639

View File

@ -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){