From b52a2da427b35b9ad89aa1c848206f9763b43ab2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Fri, 28 Apr 2006 15:24:00 +0000 Subject: [PATCH] gst/tcp/gstmultifdsink.c: When asking g_value_array_new to prealloc elements, we may as well ask for the right number... Original commit message from CVS: * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_get_stats): When asking g_value_array_new to prealloc elements, we may as well ask for the right number of elements. --- ChangeLog | 6 ++++++ gst/tcp/gstmultifdsink.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 525e313..a3b15de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-28 Michael Smith + + * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_get_stats): + When asking g_value_array_new to prealloc elements, we may as well + ask for the right number of elements. + 2006-04-28 Wim Taymans * gst-libs/gst/audio/gstbaseaudiosink.c: diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index 655edae..5be47f5 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -664,7 +664,7 @@ gst_multi_fd_sink_get_stats (GstMultiFdSink * sink, int fd) GValue value = { 0 }; guint64 interval; - result = g_value_array_new (4); + result = g_value_array_new (5); g_value_init (&value, G_TYPE_UINT64); g_value_set_uint64 (&value, client->bytes_sent); -- 2.7.4