[Gstreamer-bugs] [Bug 116597] - wavenc doesn't rewrite header at EOS

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Mon Jun 21 04:53:45 PDT 2004


http://bugzilla.gnome.org/show_bug.cgi?id=116597
GStreamer | gst-plugins | Ver: HEAD CVS





------- Additional Comments From bugs at prettypeople.org  2004-06-21 07:53 -------
Yes there is.

static void
gst_wavenc_stop_file (GstWavEnc * wavenc)
{
  GstEvent *event;
  GstBuffer *outbuf;

  event = gst_event_new_seek (GST_FORMAT_BYTES | GST_SEEK_METHOD_SET, 0);
  gst_pad_send_event (GST_PAD_PEER (wavenc->srcpad), event);

  outbuf = gst_buffer_new_and_alloc (WAV_HEADER_LEN);
  WRITE_U32 (wavenc->header + 4, wavenc->length);
  memcpy (GST_BUFFER_DATA (outbuf), wavenc->header, WAV_HEADER_LEN);

  gst_pad_push (wavenc->srcpad, GST_DATA (outbuf));
}

It first does a seek to the start of the file and then generates a new header,
and sets the length. Now, whether this is working or not is a different matter,
but the code is there.

------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the Gstreamer-bugs mailing list