Skip to content

Commit 449d917

Browse files
authored
[core] Fix getopt SRTO_TLPKTDROP (#1865)
Convert to bool instead of int32_t
1 parent b38bb7f commit 449d917

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

srtcore/core.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ void CUDT::getOpt(SRT_SOCKOPT optName, void *optval, int &optlen)
606606
break;
607607

608608
case SRTO_TLPKTDROP:
609-
*(int32_t *)optval = m_bTLPktDrop;
610-
optlen = sizeof(int32_t);
609+
*(bool *)optval = m_bTLPktDrop;
610+
optlen = sizeof(bool);
611611
break;
612612

613613
case SRTO_SNDDROPDELAY:

0 commit comments

Comments
 (0)