Current song played is one track behind from song shown in interface

Issue description:

Sometimes when I play a queue of multiple songs, after a while the song that is shown in the interface is actually one song ahead of the track audio rendered in the app. Track time does not align obviously as can be seen in screen recording uploaded, as the song shown in the interface was actually from the next album about to be played.
Appears to happen when rendered is UPnP.

Logs:

Upload description: martlego debug track offset

Additional information:

 

 

Reproduction steps:

 
Play songs over UPnP, song list becomes offset by one, skip track and rewind track to realing song shown to song rendered
 

Media provider:

Local device

Screenshots:

     

There’s no recording but an unrelated image.

Usually this is due to a renderer having issues with gapless.