[gst-devel] Seek

vaisakh.n vaisakh.n at nestgroup.net
Tue Feb 10 11:27:13 CET 2009


I was trying to write a sample mp3application with  " seek" event
so i edited the helloworld application in gstreamer-0.10/tests/examples
for that after creating the elements .
/* ***/
 gst_element_set_state (bin, GST_STATE_PLAYING);

  /* Run event loop listening for bus messages until EOS or ERROR */
  event_loop (bin);
//seek_to_time(bin,2000000);
  /* stop the bin */
  gst_element_set_state (bin, GST_STATE_NULL);
*/*****************/.

It works fine
but in in the event loop function
I wrote
 if (!gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, 
GST_SEEK_FLAG_FLUSH, GST_SEEK_TYPE_SET, 20000
                             _SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)) {
    g_print ("Seek failed!\n");
  }
for seeking but,
it always get failed..
why its so?

is it error in  the input parameter of gst_element _seek(..);
help me??
***** Confidentiality Statement/Disclaimer ***** 

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.
The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.
***** Confidentiality Statement/Disclaimer *****  

This message and any attachments is intended for the sole use of the intended recipient. It may contain confidential information. Any unauthorized use, dissemination or modification is strictly prohibited. If you are not the intended recipient, please notify the sender immediately then delete it from all your systems, and do not copy, use or print. Internet communications are not secure and it is the responsibility of the recipient to make sure that it is virus/malicious code exempt.

The company/sender cannot be responsible for any unauthorized alterations or modifications made to the contents. If you require any form of confirmation of the contents, please contact the company/sender. The company/sender is not liable for any errors or omissions in the content of this message.





More information about the gstreamer-devel mailing list