summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGöran Jönsson <goranjn@axis.com>2014-09-16 11:29:38 +0200
committerWim Taymans <wtaymans@redhat.com>2014-09-16 11:29:38 +0200
commitebd9be59fe63b242d6c7f3c28088c73392927b3b (patch)
treea65987fa02eff408f596217b4cd72fd6e64ffa92
parent0292be09eaf338f16c752aee0c317b1e6b3971e2 (diff)
client: make define for the WATCH_BACKLOG
See https://bugzilla.gnome.org/show_bug.cgi?id=736322
-rw-r--r--gst/rtsp-server/rtsp-client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index eb87c84..d616e84 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -92,6 +92,10 @@ struct _GstRTSPClientPrivate
static GMutex tunnels_lock;
static GHashTable *tunnels; /* protected by tunnels_lock */
+/* FIXME make this configurable. We don't want to do this yet because it will
+ * be superceeded by a cache object later */
+#define WATCH_BACKLOG_SIZE 100
+
#define DEFAULT_SESSION_POOL NULL
#define DEFAULT_MOUNT_POINTS NULL
#define DEFAULT_DROP_BACKLOG TRUE
@@ -3324,9 +3328,7 @@ gst_rtsp_client_attach (GstRTSPClient * client, GMainContext * context)
gst_rtsp_client_set_send_func (client, do_send_message, priv->watch,
(GDestroyNotify) gst_rtsp_watch_unref);
- /* FIXME make this configurable. We don't want to do this yet because it will
- * be superceeded by a cache object later */
- gst_rtsp_watch_set_send_backlog (priv->watch, 0, 100);
+ gst_rtsp_watch_set_send_backlog (priv->watch, 0, WATCH_BACKLOG_SIZE);
GST_INFO ("client %p: attaching to context %p", client, context);
res = gst_rtsp_watch_attach (priv->watch, context);