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: these go with the first crossing signs, and out of town such signs stand 150–300 m before the dangerous section. So the crossing is more than 100 m away, the ban does not apply yet, and the red car passes the bus before the section where the ban applies. This is allowed if the oncoming lane is clear for a sufficient distance and the pass can be finished before the last 100 m before the crossing