[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: Re: [gst-devel] playing ogg problem
From: Ronald Bultje <rbultje () ronald ! bitfreak ! net>
Date: 2004-06-23 16:20:19
Message-ID: Pine.LNX.4.33.0406231817080.21134-100000 () raq ! textinfo ! nl
[Download RAW message or body]
Hi,
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.
Ronald
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic