diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-06 12:11:29 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-06 12:11:29 +0000 |
commit | ba36c8183bef6cacc7a2e8dc3367f2d53f5ca45b (patch) | |
tree | bffbc06883d34b8684854cd49e05956c3f8335c6 /gst/audiofx/audioamplify.c | |
parent | 919e906055a4bbf70247c95e117e1840e215a645 (diff) |
gst/audiofx/: The transform_ip() methods should do nothing if in passthrough mode.
Original commit message from CVS:
* gst/audiofx/audioamplify.c: (gst_audio_amplify_transform_ip):
* gst/audiofx/audiochebyshevfreqband.c:
(gst_audio_chebyshev_freq_band_transform_ip):
* gst/audiofx/audiochebyshevfreqlimit.c:
(gst_audio_chebyshev_freq_limit_transform_ip):
* gst/audiofx/audiodynamic.c: (gst_audio_dynamic_transform_ip):
* gst/audiofx/audioinvert.c: (gst_audio_invert_transform_ip):
The transform_ip() methods should do nothing if in passthrough mode.
It might get non-writable buffers in that case but the buffer might
as well be writable.
* gst/audiofx/audiopanorama.c: (gst_audio_panorama_transform):
The transform() methods won't be called in passthrough mode and
otherwise the buffer is always writable so don't check here.
Diffstat (limited to 'gst/audiofx/audioamplify.c')
-rw-r--r-- | gst/audiofx/audioamplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audiofx/audioamplify.c b/gst/audiofx/audioamplify.c index 5861a8e0..9292e4ec 100644 --- a/gst/audiofx/audioamplify.c +++ b/gst/audiofx/audioamplify.c @@ -414,7 +414,7 @@ gst_audio_amplify_transform_ip (GstBaseTransform * base, GstBuffer * buf) guint num_samples = GST_BUFFER_SIZE (buf) / (GST_AUDIO_FILTER (filter)->format.width / 8); - if (!gst_buffer_is_writable (buf)) + if (gst_base_transform_is_passthrough (base)) return GST_FLOW_OK; if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buf))) |