[Live-devel] StreamReplicator . Best way to remove and recreate a replica

Ricardo Acosta ricardo at kafemeeting.com
Thu Mar 15 14:11:13 PDT 2012


Hi Ross

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 .

Using the
StreamReplicator::removeStreamReplica(*source) gives me an error because
source is FramedSource and it expects StreamReplica ... maybe I am missing
something

Or closing the medium source and sink (in the destructor)?
Thank you
Ricardo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120315/d25ed562/attachment.html>


More information about the live-devel mailing list