[gstreamer-bugs] [Bug 343131] [wavpack][PATCH] new wavpackenc element

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue May 30 04:15:36 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=343131
 GStreamer | gst-plugins-bad | Ver: HEAD CVS





------- Comment #8 from Tim-Philipp Müller  2006-05-30 11:15 UTC -------
> For the NEWSEGMENT... how would I do that? Catch NEWSEGMENT on the sink, create
> my own NEWSEGMENT event in bytes and send this to the src pads. This new
> NEWSEGMENT event has as offset always 0? Shall I re-init the encoder on
> NEWSEGMENT and then start from 0 again?
> Or should it have the current offset in bytes, i.e. shall I just count how much
> I push to the srcpads and put that in the NEWSEGMENT as offset? 

I'd just drop any newsegment events you receive (ie. gst_event_unref (event);
return TRUE;), possibly with a GST_WARNING if you get a newsegment event when
the encoding is already in process.

No need to send your own newsegment event from the event handler, just send it
from your chain function before you gst_pad_push() the first buffer (ie. the
wavpack header). That newsegment event should always have a 0 as start position
(so that filesink starts writing files from offset 0).


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list