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, &fmt, &cur_pos)))<br> printf("[player] : gst_element_query_position failed \n");<br>
<br>printf("current position before seek = %u\n", cur_pos); <br><br>printf("GST_SECOND = %u\n", 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("[player] Seek failed!! \n");<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 & seek is happening as expected.<br><br><br clear="all"><br>-- <br>Thanks & Regards,<br><br>Satish Pattar<br><br>