I wrote a video client that at one point needs to shut down all incoming mpeg4 
streams and delete usage environent 
and task scheduler. 
After that it needs to allocate new set of RTSPClient and start streaming all 
over again.

The only way I managed to get task scheduler to work after the first set of 
streams is shut downed is
by deleting the task scheduler and usage environent. For some reason if I don't 
create new task scheduler and env
the loop gets stuck and no frames are streaming.

But now there is a problem where I use: 

  usageEnvironment->reclaim();
  delete scheduler;
  scheduler = NULL;

  scheduler = BasicTaskScheduler::createNew();
  usageEnvironent = BasicUsageEnvironment::createNew(*scheduler);

after starting event loop there's a 12kb leak which is not dealocated with 
reclaim.
So I guess I did something wrong here. Can someone point me where?

Also, why can't I use the same task scheduler after I shutdowned all active 
streams?

Thanks.


 


ELMA Kurtalj d.o.o. (ELMA Kurtalj ltd.)
Vitezićeva 1a, 10000 Zagreb, Hrvatska (Viteziceva 1a, 10000 Zagreb, Croatia)
Tel: 01/3035555, Faks: 01/3035599 (Tel: ++385-1-3035555, Fax: ++385-1-3035599 )

Www:
www.elma.hr; shop.elma.hr

E-mail:
e...@elma.hr (e...@elma.hr)
pita...@elma.hr (questi...@elma.hr)
primje...@elma.hr (complai...@elma.hr)
prod...@elma.hr (sa...@elma.hr)
ser...@elma.hr (servic...@elma.hr)
s...@elma.hr (s...@elma.hr)
skladi...@elma.hr (wareho...@elma.hr)
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to