Commit bddc0f73 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Use CodindParams_update method on receiver.

parent 5aab1a61
......@@ -159,8 +159,7 @@ void handle_redundancy_packet(PrrtSocket *socket, PrrtPacket *packet)
redundancyPayload->baseSequenceNumber);
if(block == NULL) {
PrrtCodingParams *cpar = PrrtCodingParams_create();
cpar->k = redundancyPayload->k;
cpar->n = redundancyPayload->n;
PrrtCodingParams_update(cpar, redundancyPayload->k, redundancyPayload->n);
block = PrrtBlock_create(cpar, redundancyPayload->baseSequenceNumber);
PrrtCodingParams_destroy(cpar);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment