#NEWLINE# def _gst_new_sample( self , * largs ) : #NEWLINE# #INDENT# sample = self . _camerasink . emit ( 'pull-sample' ) #NEWLINE# if ( sample is None ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# self . _sample = pad #NEWLINE# if ( self . _texturesize is None ) : #NEWLINE# #INDENT# for pad in self . _decodebin . srcpads : #NEWLINE# #INDENT# s = pad . get_current_caps ( ) . get_structure ( 0 ) #NEWLINE# self . _texturesize = ( s . get_value ( 'width' ) , s . get_value ( 'height' ) ) #NEWLINE# Clock . schedule_once ( self . _update ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# Clock . schedule_once ( self . _update ) #NEWLINE# return False