Fixed the last bugs in rtmpclient