<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __texUpdate(self, frame):
 		""" Update the texture with the newly supplied frame. """

		# Retrieve buffer from videosink
		if self.texture_locked:
			return
		self.buffer = frame
		self.texUpdated = True