Controlling flux flow dissipation by changing flux pinning in superconducting films