Hello All,<br><br><br>I am trying play a mp3 from constructing a pipeline using an application. It works fine as expected on my desktop. when I cross compile for ARM v7 , the seek is not happening.<br><br>I am constructing pipeline using filesrc ! decodebin2 ! autoaudiosink<br>
<br>my code snippet for seek is like this..<br>---------------------------------------------------------------------------------------<br>if (!(gst_element_query_position (pipeline, &amp;fmt, &amp;cur_pos)))<br>                printf(&quot;[player] : gst_element_query_position failed \n&quot;);<br>
<br>printf(&quot;current position before seek = %u\n&quot;, cur_pos); <br><br>printf(&quot;GST_SECOND = %u\n&quot;, GST_SECOND);<br><br> double new_pos_sec = cur_pos * (1.0 / GST_SECOND) + 10; // seek for 10 sec<br><br>gint64 new_pos = new_pos_sec * GST_SECOND ;<br>
<br>if(!(gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET,<br>                      new_pos , GST_SEEK_TYPE_NONE,  GST_CLOCK_TIME_NONE)))<br>                printf(&quot;[player] Seek failed!! \n&quot;);<br>
<br>--------------------------------------------------------------------------------<br><br>output is :<br><br>current position before seek = 0<br>GST_SECOND = 0<br>[player] Seek failed!!<br><br>---------------------------------------------------------<br>
What could be the reason for GST_SECOND = 0 , on my desktop I am getting this value as 1000000000 &amp; seek is happening as expected.<br><br><br clear="all"><br>-- <br>Thanks &amp; Regards,<br><br>Satish Pattar<br><br>