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:
Víctor Manuel Jáquez Leal 2017-07-10 13:27:40 +02:00
parent 6d723303a2
commit c538942b0d

View file

@ -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;