playbin: in gapless mode playback of current uri stops before end if there's an error with the pending uri
Submitted by Lev
Created attachment 216249
Python script and media file to reproduce the problem.
I'm using playbin2 and about-to-finish signal to implement gapless playback.
It works well with valid sound files and I receive EOS after the last media file is played.
However after playbin encounters an invalid media file there is no way to detect when the playback stops. If I stop playbin as soon as an error is received the last couple of seconds are truncated from the active media. And there are no more messages on the bus after the error occurred.
I'm testing with a bug fix for https://bugzilla.gnome.org/show_bug.cgi?id=673888
I have attached a python script and test media files to reproduce the issue.
Attachment 216249, "Python script and media file to reproduce the problem.":