rtsp-server: Fix lots of compiler warnings with clang

This commit is contained in:
Sebastian Dröge 2014-02-09 10:45:28 +01:00
parent 1ab8b9d486
commit 957a4a65c6
4 changed files with 10 additions and 8 deletions

View file

@ -1040,10 +1040,11 @@ invalid_state:
/* convert @url and @path to a URL used as a content base for the factory
* located at @path */
static gchar *
make_base_url (GstRTSPClient * client, GstRTSPUrl * url, gchar * path)
make_base_url (GstRTSPClient * client, GstRTSPUrl * url, const gchar * path)
{
GstRTSPUrl tmp;
gchar *result, *trail;
gchar *result;
const gchar *trail;
/* check for trailing '/' and append one */
trail = (path[strlen (path) - 1] != '/' ? "/" : "");

View file

@ -72,7 +72,7 @@ data_item_free (gpointer data)
}
static void
data_item_dump (gconstpointer a, gpointer prefix)
data_item_dump (gconstpointer a, gconstpointer prefix)
{
const DataItem *item = a;
@ -251,7 +251,8 @@ gst_rtsp_mount_points_match (GstRTSPMountPoints * mounts,
g_mutex_lock (&priv->lock);
if (priv->dirty) {
g_sequence_sort (priv->mounts, data_item_compare, mounts);
g_sequence_foreach (priv->mounts, (GFunc) data_item_dump, "sort :");
g_sequence_foreach (priv->mounts, (GFunc) data_item_dump,
(gpointer) "sort :");
priv->dirty = FALSE;
}

View file

@ -2194,7 +2194,7 @@ gst_rtsp_stream_get_rtp_socket (GstRTSPStream * stream, GSocketFamily family)
{
GstRTSPStreamPrivate *priv = GST_RTSP_STREAM_GET_PRIVATE (stream);
GSocket *socket;
gchar *name;
const gchar *name;
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
g_return_val_if_fail (family == G_SOCKET_FAMILY_IPV4 ||
@ -2228,7 +2228,7 @@ gst_rtsp_stream_get_rtcp_socket (GstRTSPStream * stream, GSocketFamily family)
{
GstRTSPStreamPrivate *priv = GST_RTSP_STREAM_GET_PRIVATE (stream);
GSocket *socket;
gchar *name;
const gchar *name;
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
g_return_val_if_fail (family == G_SOCKET_FAMILY_IPV4 ||

View file

@ -144,7 +144,7 @@ setup_client (const gchar * launch_line)
}
static void
teardown_client (GstRTSPClient *client)
teardown_client (GstRTSPClient * client)
{
gst_rtsp_client_set_thread_pool (client, NULL);
g_object_unref (client);
@ -332,7 +332,7 @@ GST_START_TEST (test_describe)
GST_END_TEST;
gchar *expected_transport = NULL;;
static const gchar *expected_transport = NULL;;
static gboolean
test_setup_response_200_multicast (GstRTSPClient * client,