split resource_thread update into separate audio/video threads, boxblur layout tweaks