Create 2 #define in pqistreamer to easily disable packet slicing/grouping

This commit is contained in:
BuildTools 2016-11-05 19:58:06 +01:00
parent 192cbe1eda
commit 78d6735b52

View File

@ -791,7 +791,7 @@ start_packet_read:
if(!memcmp(block,PACKET_SLICING_PROBE_BYTES,8)) if(!memcmp(block,PACKET_SLICING_PROBE_BYTES,8))
{ {
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING); mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING;
#ifdef DEBUG_PACKET_SLICING #ifdef DEBUG_PACKET_SLICING
std::cerr << "(II) Enabling packet slicing!" << std::endl; std::cerr << "(II) Enabling packet slicing!" << std::endl;
#endif #endif
@ -819,7 +819,7 @@ continue_packet:
#endif #endif
is_partial_packet = true ; is_partial_packet = true ;
mAcceptsPacketSlicing = (true && !DISABLE_PACKET_SLICING); // this is needed mAcceptsPacketSlicing = !DISABLE_PACKET_SLICING; // this is needed
} }
else else
extralen = getRsItemSize(block) - blen; // old style packet type extralen = getRsItemSize(block) - blen; // old style packet type