[mythtv] [patch] Fix for sluggish pause
David Engel
gigem at comcast.net
Wed Dec 1 15:50:56 UTC 2004
On Tue, Nov 30, 2004 at 10:21:08PM -0500, Doug Larrick wrote:
> I am concerned though that this loop is spending way too much time just
> spinning during normal playback, especially with your getframe.patch.
> Maybe I'm being dense, but where exactly is it that it sleeps (rather
> than busy-waits) if we don't need a new frame yet?
It only sleeps at the top of the loop. Yes, it's inefficient, but not
that much more so. Remember, this was only for testing. A wait
condition could help but would also open up a whole new can of worms.
I'm going to look at the speed change needs again and see if I can do
something without a mutex that won't have race conditions.
David
--
David Engel
gigem at comcast.net
More information about the mythtv-dev
mailing list