fixed issue in threadsafequeue. Added logging to videolib