[Live-devel] Closing injector question
Ross Finlayson
finlayson at live.com
Tue Sep 20 03:32:16 PDT 2005
>so, if I understand, you say that the right sequence should be:
>
>videoSink->stopPlaying()
>close(injector); // DarwinInjector Object
Yes.
>and when I want to restart:
>
>videoSink->startPlaying()
>injector = DarwinInjector::CreateNew(...)
>injector->addStream(videoSink, videoRTCP);
>injector->setDestination(...)
The call to "videoSink->startPlaying()" should probably come last here.
>Is it enought? I mean, what about the RTCPInstance,
>rtcpGroupsockVideo, rtpGroupsockVideo objects?
>Will they stay quiet without problems (timeout...)?
I think so, as long as you don't close "videoSink".
Ross Finlayson
Live Networks, Inc. (LIVE.COM)
<http://www.live.com/>
More information about the live-devel
mailing list