From ed66d26d704b0ac4f5b87ceebd338365cd14f350 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 9 Jun 2011 22:47:35 +0000 Subject: reenabled num_fds callback --- src/streamer.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/streamer.c b/src/streamer.c index 0a068e4..fb3fc0a 100644 --- a/src/streamer.c +++ b/src/streamer.c @@ -45,25 +45,22 @@ static void added_cb(GstElement* sink, gint fd, gpointer data) { gint num_fds; -// g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); -// log_printf(INFO, "fdsink: successfully added client %d (sink has now %d fds)", fd, num_fds); - log_printf(INFO, "fdsink: successfully added client %d", fd); + g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); + log_printf(INFO, "fdsink: successfully added client %d (sink has now %d fds)", fd, num_fds); } static void removed_cb(GstElement* sink, gint fd, gpointer data) { gint num_fds; -// g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); -// log_printf(INFO, "fdsink: successfully removed client %d (sink has now %d fds)", fd, num_fds); - log_printf(INFO, "fdsink: successfully removed client %d", fd); + g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); + log_printf(INFO, "fdsink: successfully removed client %d (sink has now %d fds)", fd, num_fds); } static void fdremoved_cb(GstElement* sink, gint fd, gpointer data) { gint num_fds; -// g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); -// log_printf(INFO, "fdsink: successfully removed fd %d (sink has now %d fds)", fd, num_fds); - log_printf(INFO, "fdsink: successfully removed fd %d", fd); + g_object_get(G_OBJECT(sink), "num_fds", &num_fds, NULL); + log_printf(INFO, "fdsink: successfully removed fd %d (sink has now %d fds)", fd, num_fds); } int init_server(const char* host, const char* port) -- cgit v1.2.3