[Live-devel] Looping a source
Ross Finlayson
finlayson at live555.com
Sun Oct 1 19:46:35 PDT 2006
>I want to loop a source. Therefore I used the afterPlay Callback to
>sink->startplaying and start sink->startPlaying again in this callback.
>The result is as expected, the input file is looped, but the memory used by
>the application grows with every loop, so I have a memory leak.
>
>How can I loop a source properly? Do I have to setup the whole source/sink
>chain again for every loop run?
No, what you are doing is correct. I don't know what would be
causing the memory leak; I don't think it is an inherent problem with
the library. Did you write any new source and/or sink code yourself?
If so, then could the leak be occurring there?
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list