diff options
Diffstat (limited to 'gst/liveadder')
-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 */ |