Skip to content

Commit

Permalink
[core] A change in setupCC to access CUnitQueue via CRcvQueue instead…
Browse files Browse the repository at this point in the history
… of CRcvBuffer (#1681)
  • Loading branch information
maxsharabayko authored Dec 1, 2020
1 parent d3ad2a4 commit c42bc13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions srtcore/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@ class CRcvBuffer
int64_t getDrift() const { return m_DriftTracer.drift(); }

public:

int32_t getTopMsgno() const;

// @return Wrap check value
Expand All @@ -524,13 +523,6 @@ class CRcvBuffer
time_point debugGetDeliveryTime(int offset);

size_t dropData(int len);

// Required by PacketFilter facility to use as a storage
// for provided packets
CUnitQueue* getUnitQueue()
{
return m_pUnitQueue;
}

private:
int extractData(char *data, int len, int p, int q, bool passack);
Expand Down
2 changes: 1 addition & 1 deletion srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6108,7 +6108,7 @@ SRT_REJECT_REASON CUDT::setupCC()
// At this point we state everything is checked and the appropriate
// corrector type is already selected, so now create it.
HLOGC(pflog.Debug, log << "filter: Configuring: " << m_OPT_PktFilterConfigString);
if (!m_PacketFilter.configure(this, m_pRcvBuffer->getUnitQueue(), m_OPT_PktFilterConfigString))
if (!m_PacketFilter.configure(this, &(m_pRcvQueue->m_UnitQueue), m_OPT_PktFilterConfigString))
{
return SRT_REJ_FILTER;
}
Expand Down

0 comments on commit c42bc13

Please sign in to comment.