From e1628a0515a37b1551258bdf9113dd63e42202ec Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 12 Jul 2013 12:36:40 +0200 Subject: [PATCH] client: add connection to state --- gst/rtsp-server/rtsp-client.c | 1 + gst/rtsp-server/rtsp-client.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c index 6df8059..b8b96a6 100644 --- a/gst/rtsp-server/rtsp-client.c +++ b/gst/rtsp-server/rtsp-client.c @@ -1859,6 +1859,7 @@ handle_request (GstRTSPClient * client, GstRTSPMessage * request) GstRTSPMessage response = { 0 }; gchar *sessid; + state.conn = priv->connection; state.client = client; state.request = request; state.response = &response; diff --git a/gst/rtsp-server/rtsp-client.h b/gst/rtsp-server/rtsp-client.h index 82f5eec..8c2dd76 100644 --- a/gst/rtsp-server/rtsp-client.h +++ b/gst/rtsp-server/rtsp-client.h @@ -52,6 +52,7 @@ typedef struct _GstRTSPClientPrivate GstRTSPClientPrivate; /** * GstRTSPClientState: * @server: the server + * @conn: the connection * @client: the client * @request: the complete request * @uri: the complete url parsed from @request @@ -69,6 +70,7 @@ typedef struct _GstRTSPClientPrivate GstRTSPClientPrivate; */ struct _GstRTSPClientState { GstRTSPServer *server; + GstRTSPConnection *conn; GstRTSPClient *client; GstRTSPMessage *request; GstRTSPUrl *uri; -- 2.7.4