<div dir="ltr">Hi everyone,<div><br></div><div>I'm new to programming with gstreamer and my current application is a simple command line mp3 player. I am currently attempting to modify playback speed using gst_element_seek, however, it is returning false everytime I specify a start position time. </div><div><br></div><div>Here is a snippet of code:</div><div><br></div><div><div>gst_element_query_position(data->pipeline,GST_FORMAT_TIME, &pos);</div><div>g_print("speed up, pos = %" G_GINT64_FORMAT " \n", pos);</div><div>if(!gst_element_seek (data->pipeline, 2.0, GST_FORMAT_TIME,                       GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, pos, GST_SEEK_TYPE_NONE,       GST_CLOCK_TIME_NONE))</div><div><span class="" style="white-space:pre">                </span>   {</div><div><span class="" style="white-space:pre">                      </span>   g_print("Seek Failed!\n");</div><div><span class="" style="white-space:pre">           </span>   }</div></div><div>if I set the start type and start position to GST_SEEK_TYPE_NONE and GST_CLOCK_TIME_NONE respectively, playback speed will double from the beginning as expected. But obviously I want to change playback speed without restarting the song. </div><div><br></div><div>gst_element_query is working as expected and returns the time in nanoseconds to my pos variable(i.e. 1234567890 is 1.23secs into the song). </div><div><br></div><div>Any insight would be greatly appreciated. </div><div><br></div><div>Thanks, </div><div>James</div><div><br></div><div><br></div><div><br></div></div>