diff options
-rw-r--r-- | src/streamer.c | 15 |
1 files 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) |