[MPlayer-dev-eng] [PATCH] threaded cache, round 2
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Mon Jan 30 19:00:17 CET 2012
On Mon, Jan 30, 2012 at 09:48:34AM +0100, Dan Oscarsson wrote:
> sön 2012-01-29 klockan 20:05 +0100 skrev Reimar Döffinger:
> > > Attached is a new version.
> >
> > Unfortunately the approach in itself breaks the
> > stream_time_pos/stream_time_len update mechanism so the core
> > might get severely outdated values of these.
>
> This because cache_mainloop no longer times out and executes
> cache_execute_control regularly?
Yes.
> From what I can see it is just demux_mpg.c, stream_dvd.c and
> stream_dvdnav.c that uses STREAM_CTRL_GET_CURRENT_TIME or
> STREAM_CTRL_GET_TIME_LENGTH. Unfortunate to have to add a timed sleep
> just for those few formats.
You can make it pass those stream controls completely through the
cache for pthreads I guess, if the performance cost is not too high.
More information about the MPlayer-dev-eng
mailing list