Make streaming sources decode in the background thread
commitb9fe8295a52fcb93d288ce0505e7def2960c3475
authorChris Robinson <chris.kcat@gmail.com>
Sun, 15 Nov 2015 06:44:31 +0000 (14 22:44 -0800)
committerChris Robinson <chris.kcat@gmail.com>
Sun, 15 Nov 2015 06:45:08 +0000 (14 22:45 -0800)
treee6b2ba8fa9af7c05e96eb48390fa10557ebd0e28
parent83431afa7597e29679395877f2ce0d5da1d1d894
Make streaming sources decode in the background thread

The background thread context is really being handled poorly. It's avoiding use
of Context::MakeThreadCurrent because that would add an extra reference to the
context that would prevent it from being destroyed, while avoiding it means not
being able to rely on Context::GetCurrent in the async methods.
src/buffer.cpp
src/buffer.h
src/context.cpp
src/context.h
src/source.cpp
src/source.h