diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2008-04-29 00:03:39 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-17 19:29:04 +0100 |
commit | cd3f191dab28decadad13fea65f6a585011ff4ba (patch) | |
tree | a8d4b2331a87597b24cdd10e542121f41fbf4812 | |
parent | b4ac5eabc9565023b85763b16581867dc504a7ae (diff) | |
download | gst-plugins-bad-cd3f191dab28decadad13fea65f6a585011ff4ba.tar.gz gst-plugins-bad-cd3f191dab28decadad13fea65f6a585011ff4ba.tar.bz2 gst-plugins-bad-cd3f191dab28decadad13fea65f6a585011ff4ba.zip |
[MOVED FROM GST-P-FARSIGHT] check against audio_buffer_clip which can return NULL if the buffer is outside the clipping segment
20080429000339-4f0f6-7e4e31f066b87e29265ddb3978929e51efbff47d.gz
-rw-r--r-- | gst/liveadder/liveadder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 4cd7537a..c2f236b9 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -839,6 +839,10 @@ gst_live_live_adder_chain (GstPad *pad, GstBuffer *buffer) buffer = gst_audio_buffer_clip (buffer, &padprivate->segment, adder->rate, adder->bps); + /* buffer can be NULL if it's completely outside of the segment */ + if (!buffer) + goto out; + /* * Make sure all incoming buffers share the same timestamping */ |