[Live-devel] [PATCH 1/4] StreamReplicator: deactivate replicas before removing them
Stas Tsymbalov
tsymbalov at trueconf.ru
Tue May 19 08:05:52 PDT 2015
Right now removing last replica triggers (wrongly) assertion on
StreamReplicator.cpp:108, because fNumPerlicas gets decremented before
deactivating.
Also if replicator is created with deleteWhenLastReplicaDies flag set
removing last replica triggers self deletion of replicator and later
deactivateStreamReplica() is called on already destroyed class,
potentially leading to crash.
---
liveMedia/StreamReplicator.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--
Stas Tsymbalov
TrueConf LLC
http://trueconf.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-StreamReplicator-deactivate-replicas-before-removing.patch
Type: text/x-patch
Size: 1319 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20150519/4f8aa1e1/attachment.bin>
More information about the live-devel
mailing list