Change-Id: Id5c212699f3fee88d058fe208c1f86bbac6674da
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
return 0;
}
- *size = surf->info.planes[plane_idx].size;
- *offset = surf->info.planes[plane_idx].offset;
- *pitch = surf->info.planes[plane_idx].stride;
+ if (size)
+ *size = surf->info.planes[plane_idx].size;
+
+ if (offset)
+ *offset = surf->info.planes[plane_idx].offset;
+
+ if (pitch)
+ *pitch = surf->info.planes[plane_idx].stride;
_tbm_surface_mutex_unlock();