Hiya,<br><br>I'm having a lot of trouble using playbin2 for gapless playback. I used the 'about-to-finish' signal to set the next URI. This works fine, and playback works fine too. When I press pause though, and query the pipeline for the current position, I get the running time, not the position. When I hit play again, I get the position as expected and playback resumes from where it stopped. <br>
<br>For example if I have an audio clip that's 10 seconds long, and everytime I get the 'about to finish' signal, I queue it again, if I hit pause half way through the 5th play through, a position query on the pipeline will give me 0:45s.<br>
<br>The pipeline looks like this:<br>playbin2 ! equalizer ! tee T ! queue ! volume ! autoaudiosink . T ! queue ! audioconvert ! spectrum ! fakesink<br><br>I linked everything using C++ though, so I have everything outside playbin2 in another bin with a ghost pad set as playbin2's audio-sink property. I also set the fakesink 'async' property to false to allow the pipeline to pause.<br>
<br>I don't have any issues without the tee and queue elements. This pipeline works fine:<br>playbin2 ! equalizer ! volume ! autoaudiosink.<br><br>My code is here for ref ( line0-370 is pipeline setup and line 676 for position query):<br>
<a href="http://pastebin.com/07JTQJaw">http://pastebin.com/07JTQJaw</a> ...but I don't think it'll be that helpful.<br><br>I'd appreciate any advice!<br><br>-Pris<br>