<p>found out how to do it.</p>
<pre>
<b><font color=green>gint64</font> newSeek = 10;</b>
<font color=green>GstQuery</font> *query;
<font color=green>gint64</font> start, end;
query = <font color=purple>gst_query_new_seeking</font>(GST_FORMAT_TIME);
if (<font color=purple>gst_element_query</font>(playbin, query))
{
<font color=purple>gst_query_parse_seeking</font>(query, <font color=purple>NULL</font>, &aSeek_enabled, &start, &end);
if (aSeek_enabled) {
<font color=purple>gst_element_seek_simple</font>(this->aRtspPipeConstruct.playbin, GST_FORMAT_TIME,
(<font color=green>GstSeekFlags</font>)(<font color=orange>GST_SEEK_FLAG_FLUSH </font>| <font color=orange>GST_SEEK_FLAG_KEY_UNIT</font>),<b>newSeek</b> * <font color=purple>GST_SECOND</font>);
}
else
{
<font color=purple>g_print</font>(<font color=orange>"Seeking is DISABLED for this stream.\n"</font>);
}
}
else {
<font color=purple>g_printerr</font>(<font color=orange>"Seeking query failed."</font>);
}
<font color=purple>gst_query_unref</font>(query);
</pre>
<div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">
------------------------------
<br/>Gstreamer 1.14.4
<br/>------------------------------
<br/>Windows
</div>
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>