+5
-5
lines changedFilter options
+5
-5
lines changed Original file line number Diff line number Diff line change
@@ -400,7 +400,7 @@ int CRcvBufferNew::readMessage(char* data, size_t len, SRT_MSGCTRL* msgctrl)
400
400
// incase readable inorder packets are all read out.
401
401
updateFirstReadableOutOfOrder();
402
402
403
-
const int bytes_read = dst - data;
403
+
const int bytes_read = int(dst - data);
404
404
if (bytes_read < bytes_extracted)
405
405
{
406
406
LOGC(rbuflog.Error, log << "readMessage: small dst buffer, copied only " << bytes_read << "/" << bytes_extracted << " bytes.");
@@ -535,7 +535,7 @@ int CRcvBufferNew::getRcvDataSize() const
535
535
if (m_iFirstNonreadPos >= m_iStartPos)
536
536
return m_iFirstNonreadPos - m_iStartPos;
537
537
538
-
return m_szSize + m_iFirstNonreadPos - m_iStartPos;
538
+
return int(m_szSize + m_iFirstNonreadPos - m_iStartPos);
539
539
}
540
540
541
541
int CRcvBufferNew::getTimespan_ms() const
@@ -573,7 +573,7 @@ int CRcvBufferNew::getTimespan_ms() const
573
573
574
574
// One millisecond is added as a duration of a packet in the buffer.
575
575
// If there is only one packet in the buffer, one millisecond is returned.
576
-
return count_milliseconds(endstamp - startstamp) + 1;
576
+
return static_cast<int>(count_milliseconds(endstamp - startstamp) + 1);
577
577
}
578
578
579
579
int CRcvBufferNew::getRcvDataSize(int& bytes, int& timespan) const
@@ -604,7 +604,7 @@ CRcvBufferNew::PacketInfo CRcvBufferNew::getFirstValidPacketInfo() const
604
604
605
605
std::pair<int, int> CRcvBufferNew::getAvailablePacketsRange() const
606
606
{
607
-
const int seqno_last = CSeqNo::incseq(m_iStartSeqNo, countReadable());
607
+
const int seqno_last = CSeqNo::incseq(m_iStartSeqNo, (int) countReadable());
608
608
return std::pair<int, int>(m_iStartSeqNo, seqno_last);
609
609
}
610
610
@@ -852,7 +852,7 @@ void CRcvBufferNew::updateFirstReadableOutOfOrder()
852
852
return;
853
853
854
854
// TODO: unused variable outOfOrderPktsRemain?
855
-
int outOfOrderPktsRemain = m_numOutOfOrderPackets;
855
+
int outOfOrderPktsRemain = (int) m_numOutOfOrderPackets;
856
856
857
857
// Search further packets to the right.
858
858
// First check if there are packets to the right.
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4