[MPlayer-dev-eng] [rfc][patch] mplayer-mt, -lavdopts threads=2 and -vo gl failure on mpeg-1 and theora
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Tue Jan 19 08:00:59 CET 2010
On Tue, Jan 19, 2010 at 07:28:48AM +0300, Yuriy Kaminskiy wrote:
> And then nothing is displayed. I've looked at code, and, I think, found where
> problem lies: threaded decoder calls get_buffer callback from another thread
> (this is actually documented in ffmpeg-mt/doc/multithreading.txt: with mt-aware
> decoders, draw_horiz_band, get_buffer and release_buffer callbacks can be called
> from different threads), but GL context is per-thread, and all GL function fails.
get_buffer is not called unless you use -dr. Either your analysis is wrong or just
don't use -dr (on about 99% of systems it is not measurably faster anyway, and I
think it is still marked as experimental).
More information about the MPlayer-dev-eng
mailing list