[Live-devel] StreamReplicator with FileSink problem
Ross Finlayson
finlayson at live555.com
Tue Jan 22 17:27:30 PST 2013
> By examining the behavior of the replicas we were able to determine that our
> FileSink replica was being deactivated while executing
> StreamReplicator::deliverReceivedFrame(), because, when
> FramedSource::afterGetting(replica), on line 259, was called, the write error
> would occur again. Upon returning to StreamReplicator::deliverReceivedFrame(),
> the fNumActiveReplicas would have been decreased an so, the condition
> (fNumDeliveriesMadeSoFar == fNumActiveReplicas - 1 && fMasterReplica != NULL) on
> line 262 would never be met.
>
> We applied a fix to the StreamReplicator to decrease the fNumDeliveriesMadeSoFar
> variable if the replica being deactivated was also receiving a frame.
Ugh. I'm not thrilled by this hack, but right now I don't see a better solution, so I've gone ahead and included it in the latest release (2012.01.23) of the software.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130122/87d1b7fc/attachment.html>
More information about the live-devel
mailing list