[gst-devel] playing ogg problem

Ronald Bultje rbultje at ronald.bitfreak.net
Wed Jun 23 09:17:22 CEST 2004


On Wed, 23 Jun 2004, laurent belmonte wrote:
> so, my last question before the impossible one (later), how can i make
> it loop
> ( when receive "eos" signal, i want to seek to the begin of the file )

in eos handler:

g_idle_add ((GSourceFunc) seek_back, NULL);

And then:

static gboolean
seek_back (gpointer data)
  GstEvent *event;

  event = gst_event_new_seek (GST_SEEK_METHOD_SET | GST_FORMAT_TIME, 0);
  gst_element_send_event (sink, event);B

  /* once */
  return FALSE;

where sink is the output of your pipeline, so osssink or so.


More information about the gstreamer-devel mailing list