[gst-cvs] wingo gst-plugins-base: gst-plugins-base/ gst-plugins-base/ext/vorbis/ gst-plugins-base/tests/check/ gst-plugins-base/tests/check/pipelines/

Andy Wingo wingo at freedesktop.org
Mon Jan 30 07:05:01 PST 2006


CVS Root:       /cvs/gstreamer
Module:         gst-plugins-base
Changes by:     wingo
Date:           Mon Jan 30 2006  07:01:41 PST

Log message:
2006-01-30  Andy Wingo  <wingo at pobox.com>
	* tests/check/Makefile.am (check_vorbis): Add pipelines/vorbisenc.
	* ext/vorbis/vorbisenc.c (gst_vorbisenc_buffer_from_packet): Logic
	updated to timestamp from the first sample, not the last.
	(gst_vorbisenc_buffer_from_header_packet): New function, takes
	special care of granulepos and timestamp for header packets.
	(gst_vorbisenc_chain): Reflow, fix some leaks, and handle the case
	when the first buffer has a nonzero timestamp.
	* ext/vorbis/vorbisenc.h (GstVorbisEnc.granulepos_offset)
	(GstVorbisEnc.subgranule_offset): New members. Take care of the
	case when the first audio buffer we get has a nonzero timestamp.
	(GstVorbisEnc.next_ts): Renamed from prev_ts, because now we
	properly timestamp vorbis buffers with the time of the first
	sample, not the last.
	* ext/vorbis/vorbisenc.c (granulepos_to_clocktime): Renamed from
	vorbis_granule_time_copy -- now it takes the granule/subgranule
	offset into account.
	* tests/check/pipelines/vorbisenc.c: New test for correctness of
	timestamps, durations, and granulepos on buffers produced by
	vorbisenc.

Modified files:
    .               : ChangeLog
    ext/vorbis      : vorbisenc.c vorbisenc.h
    tests/check     : Makefile.am
Added files:
    tests/check/pipelines: vorbisenc.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ChangeLog.diff?r1=1.2311&r2=1.2312
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ext/vorbis/vorbisenc.c.diff?r1=1.99&r2=1.100
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/ext/vorbis/vorbisenc.h.diff?r1=1.20&r2=1.21
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/tests/check/Makefile.am.diff?r1=1.24&r2=1.25
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-base/tests/check/pipelines/vorbisenc.c?rev=1.1&content-type=text/vnd.viewcvs-markup




More information about the Gstreamer-commits mailing list