summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2011-06-09 22:47:35 +0000
committerChristian Pointner <equinox@spreadspace.org>2011-06-09 22:47:35 +0000
commited66d26d704b0ac4f5b87ceebd338365cd14f350 (patch)
tree71728f272336c88782593bfbc66f82f4ba067ac3
parentusing command line options for main parameters (diff)
reenabled num_fds callback
-rw-r--r--src/streamer.c15
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)