FR 8393 then FR 4271 at Barcelona
Budapest → Barcelona → Poznan
Timetable, Barcelona time
00:50FR 8393 from Budapest at the gate
17:55FR 4271 to Poznan leaves the gate
17 h 05 apart on the timetable
FR 4271 leaves 17 h 05 after FR 8393 arrives on the timetable: more than half a day, so not a connection we count.