multifdsink: Remove GValueArray from the doc

It's been a GstStructure for a long time. Also fix
a typo in the name of one of the fields.
This commit is contained in:
Olivier Crête 2017-03-14 16:30:18 -04:00
parent e4b7b10eed
commit c1acb1c1fb
2 changed files with 13 additions and 9 deletions

View file

@ -290,16 +290,20 @@ gst_multi_fd_sink_class_init (GstMultiFdSinkClass * klass)
* @gstmultifdsink: the multifdsink element to emit this signal on * @gstmultifdsink: the multifdsink element to emit this signal on
* @fd: the file descriptor to get stats of from multifdsink * @fd: the file descriptor to get stats of from multifdsink
* *
* Get statistics about @fd. This function returns a GValueArray to ease * Get statistics about @fd. This function returns a #GstStructure to ease
* automatic wrapping for bindings. * automatic wrapping for bindings.
* *
* Returns: a GValueArray with the statistics. The array contains guint64 * Returns: a #GstStructure with the statistics. The structures
* values that represent respectively: total number of bytes sent, time * contains guint64 values that represent respectively: total
* when the client was added, time when the client was * number of bytes sent (bytes-sent), time when the client was
* disconnected/removed, time the client is/was active, last activity * added (connect-time), time when the client was
* time (in epoch seconds), number of buffers dropped. * disconnected/removed (disconnect-time), time the client
* All times are expressed in nanoseconds (GstClockTime). * is/was active (connect-duration), last activity time (in
* The array can be 0-length if the client was not found. * epoch seconds) (last-activity-time), number of buffers
* dropped (buffers-dropped), the timestamp of the first buffer
* (first-buffer-ts) and of the last buffer (last-buffer-ts).
* All times are expressed in nanoseconds (GstClockTime). The
* structure can be empty if the client was not found.
*/ */
gst_multi_fd_sink_signals[SIGNAL_GET_STATS] = gst_multi_fd_sink_signals[SIGNAL_GET_STATS] =
g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass), g_signal_new ("get-stats", G_TYPE_FROM_CLASS (klass),

View file

@ -897,7 +897,7 @@ gst_multi_handle_sink_get_stats (GstMultiHandleSink * sink,
"connect-time", G_TYPE_UINT64, mhclient->connect_time, "connect-time", G_TYPE_UINT64, mhclient->connect_time,
"disconnect-time", G_TYPE_UINT64, mhclient->disconnect_time, "disconnect-time", G_TYPE_UINT64, mhclient->disconnect_time,
"connect-duration", G_TYPE_UINT64, interval, "connect-duration", G_TYPE_UINT64, interval,
"last-activitity-time", G_TYPE_UINT64, mhclient->last_activity_time, "last-activity-time", G_TYPE_UINT64, mhclient->last_activity_time,
"buffers-dropped", G_TYPE_UINT64, mhclient->dropped_buffers, "buffers-dropped", G_TYPE_UINT64, mhclient->dropped_buffers,
"first-buffer-ts", G_TYPE_UINT64, mhclient->first_buffer_ts, "first-buffer-ts", G_TYPE_UINT64, mhclient->first_buffer_ts,
"last-buffer-ts", G_TYPE_UINT64, mhclient->last_buffer_ts, NULL); "last-buffer-ts", G_TYPE_UINT64, mhclient->last_buffer_ts, NULL);