mediaworker: prefer deque::assign to custom loop