diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2008-08-21 13:27:12 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2008-08-21 13:27:12 +0000 |
commit | 332f465dc36582685532872c5ef1f5b76976ed2a (patch) | |
tree | a67a52d6bb9e4ea17a640f94daf3ba8bb83607db | |
parent | 698b432673894909ad6375a3210a2d592f9cbfae (diff) |
gst/wavenc/gstwavenc.c: Revert the last commit. wavenc still supports width!=depth for 32 bit width. Thanks Tim.
Original commit message from CVS:
* gst/wavenc/gstwavenc.c: (gst_wavenc_chain):
Revert the last commit. wavenc still supports width!=depth for 32 bit
width. Thanks Tim.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gst/wavenc/gstwavenc.c | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,11 @@ 2008-08-21 Sebastian Dröge <sebastian.droege@collabora.co.uk> + * gst/wavenc/gstwavenc.c: (gst_wavenc_chain): + Revert the last commit. wavenc still supports width!=depth for 32 bit + width. Thanks Tim. + +2008-08-21 Sebastian Dröge <sebastian.droege@collabora.co.uk> + * gst/matroska/matroska-demux.c: (gst_matroska_demux_parse_blockgroup_or_simpleblock): If the duration of a block is unknown only use the timestamp for the diff --git a/gst/wavenc/gstwavenc.c b/gst/wavenc/gstwavenc.c index 23af8bcd..0d106dbd 100644 --- a/gst/wavenc/gstwavenc.c +++ b/gst/wavenc/gstwavenc.c @@ -608,7 +608,6 @@ gst_wavenc_event (GstPad * pad, GstEvent * event) return res; } -#if 0 /* Copied from gst-plugins-base/gst/audioconvert/audioconvert.c */ #define READ24_FROM_LE(p) (p[0] | (p[1] << 8) | (p[2] << 16)) #define WRITE24_TO_LE(p,v) p[0] = v & 0xff; p[1] = (v >> 8) & 0xff; p[2] = (v >> 16) & 0xff @@ -654,7 +653,6 @@ gst_wavenc_format_samples (GstBuffer * buf, guint width, guint depth) #undef READ24_FROM_LE #undef WRITE24_TO_LE -#endif static GstFlowReturn gst_wavenc_chain (GstPad * pad, GstBuffer * buf) @@ -681,16 +679,12 @@ gst_wavenc_chain (GstPad * pad, GstBuffer * buf) GST_LOG_OBJECT (wavenc, "pushing %u bytes raw audio, ts=%" GST_TIME_FORMAT, GST_BUFFER_SIZE (buf), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buf))); -#if 0 if (wavenc->width != wavenc->depth) { buf = gst_buffer_make_writable (buf); gst_wavenc_format_samples (buf, wavenc->width, wavenc->depth); } else { -#endif buf = gst_buffer_make_metadata_writable (buf); -#if 0 } -#endif gst_buffer_set_caps (buf, GST_PAD_CAPS (wavenc->srcpad)); GST_BUFFER_OFFSET (buf) = WAV_HEADER_LEN + wavenc->length; |