mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
kmssink: Fix compiler warning with gcc 7
gstkmssink.c: In function ‘gst_kms_sink_get_input_buffer’: gstkmssink.c:1102:29: error: ‘mems[0]’ may be used uninitialized in this function [-Werror=maybe-uninitialized] kmsmem = (GstKMSMemory *) get_cached_kmsmem (mems[0]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
This commit is contained in:
parent
a3b61c8ab8
commit
40a2deef80
1 changed files with 1 additions and 0 deletions
|
@ -1067,6 +1067,7 @@ gst_kms_sink_import_dmabuf (GstKMSSink * self, GstBuffer * inbuf,
|
||||||
/* We cannot have multiple dmabuf per plane */
|
/* We cannot have multiple dmabuf per plane */
|
||||||
if (n_mem > n_planes)
|
if (n_mem > n_planes)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
g_assert (n_planes != 0);
|
||||||
|
|
||||||
/* Update video info based on video meta */
|
/* Update video info based on video meta */
|
||||||
if (meta) {
|
if (meta) {
|
||||||
|
|
Loading…
Reference in a new issue