[Live-devel] 2 live loops in 1 process

Stas Desyatnlkov stas at mer.co.il
Mon Nov 20 00:10:52 PST 2006


Live uses static variables in its implementation. I guess its some sort
race condition. I will rewrite my code the way it'll use only single
instance of live.

 

Another question: I have a class derived from MultiframedRTPSink. I need
to call stopPlaying on that sink. The MultiframedRTPSink class overrides
stopPlaying and makes it protected. Can I just override it in my sink
and make it public, so I can call it?

 

Regards,

Stas.

  _____  

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Sunday, November 19, 2006 8:15 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] 2 live loops in 1 process

 

	I have two static libs each initializing live with its usage
environment, task scheduler and all.

	That way I have 2 threads running live in a single process.
After some time, when both threads are active I have heap corruption.

 

I'm not sure why this would be happening - what you are doing should
work, provided that each thread is not referencing objects created by
the other thread.

 

Without knowing exactly how/why your heap is getting corrupted, it's
hard to say more.

-- 


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/20061120/be0f6ee4/attachment-0001.html 


More information about the live-devel mailing list