Change-Id: If551d6df84736e8e7bd1a20d37603f97501492c4
int buffer_handler_load(struct buffer_info *info)
{
+ int len;
+
if (!info) {
DbgPrint("buffer handler is nil\n");
return -EINVAL;
}
if (info->type == BUFFER_TYPE_FILE) {
- int len;
double timestamp;
len = strlen(g_conf.path.image) + 40;
} else if (info->type == BUFFER_TYPE_SHM) {
int id;
int size;
- int len;
struct buffer *buffer; /* Just for getting a size */
size = info->w * info->h * info->pixel_size;
snprintf(info->id, fname_len, "shm://%d", id);
} else if (info->type == FB_TYPE_PIXMAP) {
ErrPrint("Pixmap is not supported yet\n");
- strncpy(info->id, fname_len, "pixmap://-1");
+ strncpy(info->id, "pixmap://-1", fname_len);
}
info->bufsz = size;