Skip to content

Commit

Permalink
[core] Fix getopt SRTO_TLPKTDROP (#1865)
Browse files Browse the repository at this point in the history
Convert to bool instead of int32_t
  • Loading branch information
quink-black authored Mar 19, 2021
1 parent b38bb7f commit 449d917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ void CUDT::getOpt(SRT_SOCKOPT optName, void *optval, int &optlen)
break;

case SRTO_TLPKTDROP:
*(int32_t *)optval = m_bTLPktDrop;
optlen = sizeof(int32_t);
*(bool *)optval = m_bTLPktDrop;
optlen = sizeof(bool);
break;

case SRTO_SNDDROPDELAY:
Expand Down

0 comments on commit 449d917

Please sign in to comment.