[Live-devel] StreamReplicator . Best way to remove and recreate a replica
Ross Finlayson
finlayson at live555.com
Thu Mar 15 15:37:52 PDT 2012
> I create the replicator with the false option to avoid it deletes the input Source when removing all replicas.
> StreamReplicator::createNew(*env, Source, false)
>
> then create the source to feed it into the sink
> FramedSource* source = replicator->createStreamReplica();
>
> What would be the best way to remove a replica, knowing that we need to create it again towards another port/address .
You delete a replica in the same way that you delete any other "Medium"-subclass object - by calling
Medium::close(pointer-to-replica);
> Using the
> StreamReplicator::removeStreamReplica(*source)
No, you can't call that, because it's a private function (used only in the implementation of these classes).
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/20120315/8bf16d0b/attachment.html>
More information about the live-devel
mailing list