[Live-devel] [PATCH 2/4] StreamReplicator: correctly deactivate replicas received current frame
Stas Tsymbalov
tsymbalov at trueconf.ru
Tue May 19 08:07:08 PDT 2015
Right now if replica receives current frame and then deactivated before
replicator is advanced to next frame, logic which deceides when to
advance to the next frame gets broken (assertion on StreamReplicator.cpp:265
triggers and frame advances early).
This patch fixes this by decrementing fNumDeliveriesMadeSoFar when
deactivating replicas that received current frame (and hence fNumDeliveriesMadeSoFar
was incremented because of that). This also eliminates need in fDeliveryInProgress.
---
liveMedia/StreamReplicator.cpp | 30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)
--
Stas Tsymbalov
TrueConf LLC
http://trueconf.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-StreamReplicator-correctly-deactivate-replicas-recei.patch
Type: text/x-patch
Size: 4050 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150519/9b5f0934/attachment.bin>
More information about the live-devel
mailing list