Desktop capture update, does not work

-I am not sure what the error is caused by but I've added a pipeline and
comments in the code that explain the problem.