diff --git a/rust/src/worker/utils.rs b/rust/src/worker/utils.rs index fbbd2e1c38..b04d74acee 100644 --- a/rust/src/worker/utils.rs +++ b/rust/src/worker/utils.rs @@ -80,8 +80,6 @@ where version.as_ptr(), 0, 0, - 0, - 0, channel_read_fn, channel_read_ctx, channel_write_fn, diff --git a/worker/include/Channel/ChannelNotifier.hpp b/worker/include/Channel/ChannelNotifier.hpp index 098b4366df..c896ca3958 100644 --- a/worker/include/Channel/ChannelNotifier.hpp +++ b/worker/include/Channel/ChannelNotifier.hpp @@ -25,7 +25,7 @@ namespace Channel FBS::Notification::Body type, flatbuffers::Offset
& body) { - auto& builder = ChannelNotifier::bufferBuilder; + auto& builder = this->bufferBuilder; auto notification = FBS::Notification::CreateNotificationDirect( builder, targetId.c_str(), event, type, body.Union()); @@ -50,7 +50,6 @@ namespace Channel this->channel->Send(builder.GetBufferPointer(), builder.GetSize()); builder.Reset(); } - void Emit(const FBS::Notification::Notification& notification); private: // Passed by argument. diff --git a/worker/include/lib.hpp b/worker/include/lib.hpp index 513e354b7d..8656a3c7df 100644 --- a/worker/include/lib.hpp +++ b/worker/include/lib.hpp @@ -6,8 +6,6 @@ extern "C" int mediasoup_worker_run( const char* version, int consumerChannelFd, int producerChannelFd, - int payloadConsumeChannelFd, - int payloadProduceChannelFd, ChannelReadFn channelReadFn, ChannelReadCtx channelReadCtx, ChannelWriteFn channelWriteFn, diff --git a/worker/src/Channel/ChannelSocket.cpp b/worker/src/Channel/ChannelSocket.cpp index 556072df7b..058d7b21b4 100644 --- a/worker/src/Channel/ChannelSocket.cpp +++ b/worker/src/Channel/ChannelSocket.cpp @@ -137,7 +137,7 @@ namespace Channel return; } - SendImpl(reinterpret_cast