Fix io_interface stuff in media_resource