Fixed a bug with RTMP publisher queued packets being inserted potentially out of order, and also fixed a bug with proper code not being called on the first keyframe