mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Name the parameters more appropriately.
This commit is contained in:
parent
243b524f51
commit
8d2ace0026
2 changed files with 7 additions and 8 deletions
|
@ -721,7 +721,7 @@ receive_failed:
|
|||
|
||||
/* called when we need to accept a new request from a client */
|
||||
static gboolean
|
||||
client_accept (GstRTSPClient *client, GIOChannel *source)
|
||||
client_accept (GstRTSPClient *client, GIOChannel *channel)
|
||||
{
|
||||
/* a new client connected. */
|
||||
int server_sock_fd;
|
||||
|
@ -730,7 +730,7 @@ client_accept (GstRTSPClient *client, GIOChannel *source)
|
|||
|
||||
conn = client->connection;
|
||||
|
||||
server_sock_fd = g_io_channel_unix_get_fd (source);
|
||||
server_sock_fd = g_io_channel_unix_get_fd (channel);
|
||||
|
||||
address_len = sizeof (client->address);
|
||||
memset (&client->address, 0, address_len);
|
||||
|
@ -802,10 +802,9 @@ gst_rtsp_client_get_session_pool (GstRTSPClient *client)
|
|||
/**
|
||||
* gst_rtsp_client_attach:
|
||||
* @client: a #GstRTSPClient
|
||||
* @context: a #GMainContext
|
||||
* @channel: a #GIOChannel
|
||||
*
|
||||
* Attaches @client to @context. When the mainloop for @context is run, the
|
||||
* client will be dispatched.
|
||||
* Accept a new connection for @client on the socket in @source.
|
||||
*
|
||||
* This function should be called when the client properties and urls are fully
|
||||
* configured and the client is ready to start.
|
||||
|
@ -813,11 +812,11 @@ gst_rtsp_client_get_session_pool (GstRTSPClient *client)
|
|||
* Returns: %TRUE if the client could be accepted.
|
||||
*/
|
||||
gboolean
|
||||
gst_rtsp_client_accept (GstRTSPClient *client, GIOChannel *source)
|
||||
gst_rtsp_client_accept (GstRTSPClient *client, GIOChannel *channel)
|
||||
{
|
||||
gst_rtsp_connection_create (NULL, &client->connection);
|
||||
|
||||
if (!client_accept (client, source))
|
||||
if (!client_accept (client, channel))
|
||||
goto accept_failed;
|
||||
|
||||
/* client accepted, spawn a thread for the client */
|
||||
|
|
|
@ -80,7 +80,7 @@ void gst_rtsp_client_set_session_pool (GstRTSPClient *client,
|
|||
GstRTSPSessionPool * gst_rtsp_client_get_session_pool (GstRTSPClient *client);
|
||||
|
||||
gboolean gst_rtsp_client_accept (GstRTSPClient *client,
|
||||
GIOChannel *source);
|
||||
GIOChannel *channel);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue