mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
rtsp-server: Fix lots of compiler warnings with clang
This commit is contained in:
parent
1ab8b9d486
commit
957a4a65c6
4 changed files with 10 additions and 8 deletions
|
@ -1040,10 +1040,11 @@ invalid_state:
|
||||||
/* convert @url and @path to a URL used as a content base for the factory
|
/* convert @url and @path to a URL used as a content base for the factory
|
||||||
* located at @path */
|
* located at @path */
|
||||||
static gchar *
|
static gchar *
|
||||||
make_base_url (GstRTSPClient * client, GstRTSPUrl * url, gchar * path)
|
make_base_url (GstRTSPClient * client, GstRTSPUrl * url, const gchar * path)
|
||||||
{
|
{
|
||||||
GstRTSPUrl tmp;
|
GstRTSPUrl tmp;
|
||||||
gchar *result, *trail;
|
gchar *result;
|
||||||
|
const gchar *trail;
|
||||||
|
|
||||||
/* check for trailing '/' and append one */
|
/* check for trailing '/' and append one */
|
||||||
trail = (path[strlen (path) - 1] != '/' ? "/" : "");
|
trail = (path[strlen (path) - 1] != '/' ? "/" : "");
|
||||||
|
|
|
@ -72,7 +72,7 @@ data_item_free (gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
data_item_dump (gconstpointer a, gpointer prefix)
|
data_item_dump (gconstpointer a, gconstpointer prefix)
|
||||||
{
|
{
|
||||||
const DataItem *item = a;
|
const DataItem *item = a;
|
||||||
|
|
||||||
|
@ -251,7 +251,8 @@ gst_rtsp_mount_points_match (GstRTSPMountPoints * mounts,
|
||||||
g_mutex_lock (&priv->lock);
|
g_mutex_lock (&priv->lock);
|
||||||
if (priv->dirty) {
|
if (priv->dirty) {
|
||||||
g_sequence_sort (priv->mounts, data_item_compare, mounts);
|
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;
|
priv->dirty = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2194,7 +2194,7 @@ gst_rtsp_stream_get_rtp_socket (GstRTSPStream * stream, GSocketFamily family)
|
||||||
{
|
{
|
||||||
GstRTSPStreamPrivate *priv = GST_RTSP_STREAM_GET_PRIVATE (stream);
|
GstRTSPStreamPrivate *priv = GST_RTSP_STREAM_GET_PRIVATE (stream);
|
||||||
GSocket *socket;
|
GSocket *socket;
|
||||||
gchar *name;
|
const gchar *name;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
||||||
g_return_val_if_fail (family == G_SOCKET_FAMILY_IPV4 ||
|
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);
|
GstRTSPStreamPrivate *priv = GST_RTSP_STREAM_GET_PRIVATE (stream);
|
||||||
GSocket *socket;
|
GSocket *socket;
|
||||||
gchar *name;
|
const gchar *name;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
g_return_val_if_fail (GST_IS_RTSP_STREAM (stream), NULL);
|
||||||
g_return_val_if_fail (family == G_SOCKET_FAMILY_IPV4 ||
|
g_return_val_if_fail (family == G_SOCKET_FAMILY_IPV4 ||
|
||||||
|
|
|
@ -144,7 +144,7 @@ setup_client (const gchar * launch_line)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
teardown_client (GstRTSPClient *client)
|
teardown_client (GstRTSPClient * client)
|
||||||
{
|
{
|
||||||
gst_rtsp_client_set_thread_pool (client, NULL);
|
gst_rtsp_client_set_thread_pool (client, NULL);
|
||||||
g_object_unref (client);
|
g_object_unref (client);
|
||||||
|
@ -332,7 +332,7 @@ GST_START_TEST (test_describe)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
gchar *expected_transport = NULL;;
|
static const gchar *expected_transport = NULL;;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
test_setup_response_200_multicast (GstRTSPClient * client,
|
test_setup_response_200_multicast (GstRTSPClient * client,
|
||||||
|
|
Loading…
Reference in a new issue