<div dir="ltr"><div><div><div>Right now when my application is playing video files in succession there is only a momentary pause between the end of one and the start of another.<br><br></div>Just today I put in an option to abort the currently playing file and move on to the next one. I did this in an entirely naive way, by just calling g_main_loop_quit as if I had received an EOS message, and letting my code select the next file in the sequence and setting element properties accordingly.<br>
<br></div>This works, but I find there can be a 5-10 second delay between the first preroll image appearing on screen and the actual start of regular playing.<br><br></div>I can only imagine its taking this long due to me not correctly closing down the previous stream. Is there some other way I should have gone about aborting the stream? Perhaps inserting an EOS event and waiting for it to cause the g_main_loop_quit when my bus message handler sees it?<br>
<br clear="all"><div><div><div><div>Looking at the log file there seems to be a lot of reference to clocks and synchronization, so I'm worried that some element is trying to match up timestamps from the old and new media streams.<br>
<br></div><div>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div></div></div></div>