Fix double decode

Found a workaround for the setSurfaceTexture() problem.