Browse Source

Fixed track recv queue size function

Paul-Louis Ageneau 2 years ago
parent
commit
cda90b1eb5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/track.cpp

+ 1 - 1
src/impl/track.cpp

@@ -21,7 +21,7 @@ static LogCounter COUNTER_QUEUE_FULL(plog::warning,
 
 Track::Track(weak_ptr<PeerConnection> pc, Description::Media description)
     : mPeerConnection(pc), mMediaDescription(std::move(description)),
-      mRecvQueue(RECV_QUEUE_LIMIT, message_size_func) {}
+      mRecvQueue(RECV_QUEUE_LIMIT, [](const message_ptr &m) { return m->size(); }) {}
 
 Track::~Track() {
 	PLOG_VERBOSE << "Destroying Track";