/* 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] != '/' ? "/" : "");
}
static void
-data_item_dump (gconstpointer a, gpointer prefix)
+data_item_dump (gconstpointer a, gconstpointer prefix)
{
const DataItem *item = a;
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;
}
{
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 ||
{
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 ||
}
static void
-teardown_client (GstRTSPClient *client)
+teardown_client (GstRTSPClient * client)
{
gst_rtsp_client_set_thread_pool (client, NULL);
g_object_unref (client);
GST_END_TEST;
-gchar *expected_transport = NULL;;
+static const gchar *expected_transport = NULL;;
static gboolean
test_setup_response_200_multicast (GstRTSPClient * client,