A hydraulic machine of radial-piston type, comprising: a plurality of pistons arranged in a circumferential direction of the hydraulic machine; a cylinder block in which a plurality of cylinders for guiding the respective pistons reciprocably along a radial direction of the hydraulic machine is formed, the cylinder block including a plurality of segments divided in the circumferential direction; a third seal disposed in the axial direction so as to fill a gap between a pair of segments arranged adjacently in the circumferential direction among the plurality of segments; a cam disposed in a cam chamber located radially inside or outside the cylinder block so as to face the plurality of pistons; at least one end plate (26,27) disposed adjacent to the cylinder block in an axial direction of the hydraulic machine, the at least one end plate (26,27) forming a stationary part of the hydraulic machine together with the cylinder block; a first inner flow channel communicating with working chambers formed by the pistons and the cylinders, the first inner flow channel being disposed inside the cylinder block so as to have an opening into a gap between the cylinder block and the at least one end plate (26,27), the gap communicating with the cam chamber; a second inner flow channel having an opening end which faces an opening end of the first inner flow channel via the gap, the second inner flow channel being disposed inside the at least one end plate (26,27) so as to communicate with the first inner flow channel via the gap; at least one first seal disposed in the circumferential direction of the hydraulic machine so as to fill a radial portion of the gap between the cylinder block and the at least one end plate (26,27) that extends in the radial direction; and a second seal disposed in the gap between the cylinder block and the at least one end plate (26,27) so as to surround the opening end of the first inner flow channel and the opening end of the second inner flow channel, wherein a recessed groove is formed on the at least one end plate (26,27) and the cylinder block, the recessed groove extending in the circumferential direction along a joint line between the at least one end plate (26,27) and the cylinder block so that the gap between the at least one end plate (26,27) and the cylinder block has an opening into a groove bottom of the recessed groove, and wherein the at least one first seal is disposed in the recessed groove. a plurality of pistons arranged in a circumferential direction of the hydraulic machine; a cylinder block in which a plurality of cylinders for guiding the respective pistons reciprocably along a radial direction of the hydraulic machine is formed, the cylinder block including a plurality of segments divided in the circumferential direction; a third seal disposed in the axial direction so as to fill a gap between a pair of segments arranged adjacently in the circumferential direction among the plurality of segments; a cam disposed in a cam chamber located radially inside or outside the cylinder block so as to face the plurality of pistons; at least one end plate (26,27) disposed adjacent to the cylinder block in an axial direction of the hydraulic machine, the at least one end plate (26,27) forming a stationary part of the hydraulic machine together with the cylinder block; a first inner flow channel communicating with working chambers formed by the pistons and the cylinders, the first inner flow channel being disposed inside the cylinder block so as to have an opening into a gap between the cylinder block and the at least one end plate (26,27), the gap communicating with the cam chamber; a second inner flow channel having an opening end which faces an opening end of the first inner flow channel via the gap, the second inner flow channel being disposed inside the at least one end plate (26,27) so as to communicate with the first inner flow channel via the gap; at least one first seal disposed in the circumferential direction of the hydraulic machine so as to fill a radial portion of the gap between the cylinder block and the at least one end plate (26,27) that extends in the radial direction; and a second seal disposed in the gap between the cylinder block and the at least one end plate (26,27) so as to surround the opening end of the first inner flow channel and the opening end of the second inner flow channel, wherein a recessed groove is formed on the at least one end plate (26,27) and the cylinder block, the recessed groove extending in the circumferential direction along a joint line between the at least one end plate (26,27) and the cylinder block so that the gap between the at least one end plate (26,27) and the cylinder block has an opening into a groove bottom of the recessed groove, and wherein the at least one first seal is disposed in the recessed groove.