mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
[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
This commit is contained in:
parent
b4ac5eabc9
commit
cd3f191dab
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue