multifilesink: fix buffer list size calculation in render_list
authorPeter Seiderer <ps.report@gmx.net>
Mon, 30 Apr 2012 11:32:41 +0000 (13:32 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Mon, 30 Apr 2012 21:00:59 +0000 (22:00 +0100)
Fix uninitialized 'size' variable in call to gst_buffer_list_foreach().

gst/multifile/gstmultifilesink.c

index ce439c1..9142968 100644 (file)
@@ -706,7 +706,7 @@ static GstFlowReturn
 gst_multi_file_sink_render_list (GstBaseSink * sink, GstBufferList * list)
 {
   GstBuffer *buf;
-  guint size;
+  guint size = 0;
 
   gst_buffer_list_foreach (list, buffer_list_calc_size, &size);
   GST_LOG_OBJECT (sink, "total size of buffer list %p: %u", list, size);