<div dir="ltr">I am trying to grab the speed at which video is playing at the moment it reaches the end (or start, if playing in reverse) of a video stream, I have implemented the ability to have the stream jump to where I want it to go (here, 1 second from the start) when it reaches the end or start of the stream, but no matter what the playback rate is at the moment it reaches the eos the rate resets to normal forward. I am working in C. <div><br></div><div><div style="color:rgb(204,204,204);background-color:rgb(31,31,31);font-family:"Droid Sans Mono","monospace",monospace;font-size:14px;line-height:19px;white-space:pre"><div><span style="color:rgb(86,156,214)">static</span> <span style="color:rgb(86,156,214)">void</span> <span style="color:rgb(220,220,170)">eos_cb</span> (<span style="color:rgb(78,201,176)">GstBus</span> <span style="color:rgb(212,212,212)">*</span><span style="color:rgb(156,220,254)">bus</span>, <span style="color:rgb(78,201,176)">GstMessage</span> <span style="color:rgb(212,212,212)">*</span><span style="color:rgb(156,220,254)">msg</span>, <span style="color:rgb(78,201,176)">CustomData</span> <span style="color:rgb(212,212,212)">*</span><span style="color:rgb(156,220,254)">data</span>) {</div><div>  <span style="color:rgb(220,220,170)">g_print</span> (<span style="color:rgb(206,145,120)">"End-Of-Stream reached.</span><span style="color:rgb(215,186,125)">\n</span><span style="color:rgb(206,145,120)">"</span>);  </div><div>  <span style="color:rgb(220,220,170)">gst_element_seek_simple</span> (<span style="color:rgb(156,220,254)">data</span>-><span style="color:rgb(156,220,254)">playbin</span>, <span style="color:rgb(79,193,255)">GST_FORMAT_TIME</span>,</div><div>            <span style="color:rgb(79,193,255)">GST_SEEK_FLAG_FLUSH</span> <span style="color:rgb(212,212,212)">|</span> <span style="color:rgb(79,193,255)">GST_SEEK_FLAG_KEY_UNIT</span>, <span style="color:rgb(181,206,168)">1</span> <span style="color:rgb(212,212,212)">*</span> <span style="color:rgb(86,156,214)">GST_SECOND</span>);           </div><div>            <span style="color:rgb(220,220,170)">send_seek_event</span> (<span style="color:rgb(156,220,254)">data</span>); </div><div>}</div><div><br></div></div></div><div>Thanks for any advice.</div></div>