summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2011-06-08 22:05:59 +0000
committerChristian Pointner <equinox@spreadspace.org>2011-06-08 22:05:59 +0000
commitd1a4b2c17c628f21511d0f7c457cc4f5cfeb66f3 (patch)
treec7a85ac486b8952b4d3f00b985dc0697c35683e8
parentstreamer_stop fixed (diff)
num_fds not in all older versions of gstreamer multifdsink
-rw-r--r--src/streamer.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/streamer.c b/src/streamer.c
index 17483c1..c5052e5 100644
--- a/src/streamer.c
+++ b/src/streamer.c
@@ -44,22 +44,25 @@
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);
+// 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);
}
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);
+// 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);
}
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);
+// 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);
}
int init_server(const char* host, const char* port)