BALTIMORE—Wade Miley’s Orioles debut ended in some pain. Miley was hit in the lower left calf by a line shot by Rougned Odor to end the fifth, and he walked gingerly off the mound.

By then, Miley gave up four runs, and was probably not going to pitch any further as the Orioles lost to the Texas Rangers 5-3 before

28,762 at Oriole Park on Thursday night.

Miley’s injury wasn’t serious, and manager Buck Showalter said he didn’t think it would prevent the new Orioles left-hander from taking his scheduled turn Tuesday night in Oakland.

“Tightened up a little bit but it’s fine. It’s going to be fine. I don’t think it’s a big concern at all. It’s one of those things. I’m glad it hit me, would’ve been one more run if it didn’t hit me. So it worked out good,” Miley said.

Miley worked quickly, and the game moved along nicely. It ended in two hours, 26 minutes for the second straight night, the two quickest games of the Orioles season.

The Orioles (61-46) managed to take two of three games against the Rangers (63-46).

“I was impressed with how well our guys pitched against them cause that's a tough lineup to go through and stay engaged in the game. We did for three games. That's the type of thing we're going to have be able to do to get where we want to go. I was proud of them, the way we presented ourselves against one of the best teams in the league and maybe in both leagues. They've got a lot of weapons,” manager Buck Showalter said.

After a scoreless first inning, Jonathan Lucroy, who joined the Rangers on Tuesday, hit his first home run with Texas in the second.

Delino DeShields doubled to start the third, and he later came home on Ian Desmond’s infield out.

Desmond’s RBI single under Chris Davis’ glove scored DeShields in the fifth, and Carlos Beltran lofted a short fly ball to right that Jonathan Schoop nearly caught up with, but didn’t. It fell for a single, and Shin-Soo Chin scored for a 4-0 Texas lead.

Chin, who was at first probably screened Davis, incidentally causing a run.

“There’s always hindsight with things, but that’s one of the things you talk to your runners about. You try to get in that position. He almost had to guess where the ball was,” Showalter said.

“Plays we normally make we didn’t make. The runner did a great job of shielding Chris on the one and some ground balls snuck through. But I liked what I saw.”

Odor ended the inning by lining a ball off Miley’s leg. It caromed to Schoop, who threw to first for the third out.

Miley stayed on the ground for a few moments, then slowly walked into the dugout.

“It just got real tight. It was really tight. But after I walked it off a little bit it kind of released and it really hasn’t bothered me since,” Miley said.

Mark Trumbo hit his 31st home run of the season to center to start the fifth against A.J. Griffin. Pedro Alvarez followed with his 16th, and the Orioles cut the lead to 4-2.

It was the 12th time the Orioles (61-46) had hit back-to-back home runs this season.

Miley (7-9) allowed four runs on eight hits in five innings.

“I didn’t have very good command at all. Had to battle to make some pitches. Tough luck in the fifth inning. It happens,” Miley said.

“Overall it’s not exactly how I wanted to go out and throw but at the same time. It’s baseball. You’re never going to do your best every time out, but I was able to make some pitches in some jams and get out of some stuff. But it’s something to build on and get the first one out of the way.”

Hyun Soo Kim led off the sixth with his fourth run, his first at home, and it was 4-3.

“It would have been much better if that home run actually brought us a win, and because it wasn’t a win today, it didn’t really mean that much.”

Griffin (5-1) allowed three runs on nine hits in 5 2/3 innings.

Keone Kela got one out in the sixth, and making his Rangers debut, Jeremy Jeffress pitched a scoreless seventh.

After two shutout innings by Mychal Givens, Logan Ondrusek allowed a run in the eighth on doubles by Adrian Beltre and Odor.

Matt Bush pitched the eighth, and Sam Dyson picked up his 23rd save in the ninth.

NOTE: Yovani Gallardo (3-3, 5.70) faces former Oriole Miguel Gonzalez (2-5, 4.06) on Friday night as the Orioles begin a three-game series against the Chicago White Sox.

MORE ORIOLES: BUCK SHOWALTER ISN'T SURE WHY THE ORIOLES ARE SO STRONG AT HOME