[Live-devel] Busy waiting on file sources
Ross Finlayson
finlayson at live555.com
Fri Jan 5 07:39:20 PST 2007
>Is there any particular reason why fileReadableHandler cannot call
>stopGettingFrames, removing the file socket from the select list until the
>data is actually needed? Applying the attached patch does appear to reduce
>cpu usage significantly, without any nasty side effects. Is this a reasonable
>approach, or am I breaking something?
No, your approach is OK. A fix, probably similar to this, will
appear in the next release of the code. Thanks for the note.
Out of curiosity, what kind of data are you streaming when you
encounter this situation? (The problem that you noted will occur
only for some media types; for others, "doGetNextFrame()" won't end
up getting called until the downstream recipient is actually ready to
get/handle new data.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list