The answer depends on the distance to the railroad crossing. Passing is banned on the crossing itself and within 100 m before it. Here the crossing signs stand together with the
and
boards with three stripes: they are placed with the first crossing signs, and out of town those signs stand 150–300 m before the hazard. So the crossing is more than 100 m away, the ban does not apply yet, and the red car is passing the bus before the no-passing stretch. That is allowed if the oncoming lane is clear for a long enough distance and the pass can be finished before the last 100 m before the crossing