Adding in rwlock intialization and destruction. Not acquiring during video streaming.