channels/rdpsnd: refactoring