local: Don't set 0 as maximum framerate if none is given

That's going to cause an assertion, the valid range is [1,MAX]. Also
don't plug a videorate element at all if the maximum framerate is
given as 0.