If a buffer was dropped, we might request data from the adapter that is not
there and then we get a NULL buffer.
GstBuffer *sub;
/* Fragmented packet handling */
-
outbuf = NULL;
if (len_offs == 0 && (available = gst_adapter_available (depay->adapter))) {
available, len_offs);
sub = gst_adapter_take_buffer (depay->adapter, len_offs);
gst_adapter_clear (depay->adapter);
- gst_adapter_push (depay->adapter, sub);
+ if (sub)
+ gst_adapter_push (depay->adapter, sub);
}
}
sub = gst_rtp_buffer_get_payload_subbuffer (buf, offset, packet_len);