X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Examples%2FDVBAdapter%2FULEdec.cc;fp=Examples%2FDVBAdapter%2FULEdec.cc;h=395688cfb31d248273472c2a6ffcdeae969ac512;hb=759310ea14e1fa1eb65f029762efa32d52539e59;hp=3c1de2592455dce356b0db788eddf0f68b325cbf;hpb=9f6bb706cb491d4da38f6472746b3076a66202e0;p=senf.git diff --git a/Examples/DVBAdapter/ULEdec.cc b/Examples/DVBAdapter/ULEdec.cc index 3c1de25..395688c 100644 --- a/Examples/DVBAdapter/ULEdec.cc +++ b/Examples/DVBAdapter/ULEdec.cc @@ -197,7 +197,11 @@ ULEdec::iterator ULEdec::readNewSNDUPacket(iterator i, iterator const i_end) "SNDU length error. length=%d") % sndu_length) ); } this->snduPacket = senf::SNDUPacket::create(sndu_length+4); - this->snduPacket->d_bit() = dbit; + + if (dbit) + this->snduPacket->withoutDestination(); + // else not needed since default on newly created packet is withDestination() + this->snduPacket->length() = sndu_length; this->snduPacketData_iter = boost::next(this->snduPacket.data().begin(), 2); this->priv_sndu_type_1 = false; @@ -283,6 +287,6 @@ int main(int argc, char const * argv[]) // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" -// compile-command: "scons -u test" +// compile-command: "scons -U" // comment-column: 40 // End: