mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
kmssink: initialize variable
Otherwise clang complains: gstkmssink.c:1192:7: warning: variable 'buf' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
This commit is contained in:
parent
6d723303a2
commit
c538942b0d
1 changed files with 1 additions and 0 deletions
|
@ -1189,6 +1189,7 @@ gst_kms_sink_copy_to_dumb_buffer (GstKMSSink * self, GstBuffer * inbuf)
|
|||
gboolean success;
|
||||
GstBuffer *buf;
|
||||
|
||||
buf = NULL;
|
||||
if (!gst_buffer_pool_set_active (self->pool, TRUE))
|
||||
goto activate_pool_failed;
|
||||
|
||||
|
|
Loading…
Reference in a new issue