Drop const from functions dealing with urls
authorWim Taymans <wim.taymans@collabora.co.uk>
Sat, 31 Jan 2009 18:50:33 +0000 (19:50 +0100)
committerWim Taymans <wim@metal.(none)>
Sat, 31 Jan 2009 18:50:33 +0000 (19:50 +0100)
Drop const from GstRTSPUrl stuff because the .h files in gst-plugins-base don't
have the right const in them.

gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-media-factory.c

index 610428a..465b2ec 100644 (file)
@@ -117,7 +117,7 @@ compare_uri (const GstRTSPUrl *uri1, const GstRTSPUrl *uri2)
  * but is cached for when the same client (without breaking the connection) is
  * doing a setup for the exact same url. */
 static GstRTSPMedia *
-find_media (GstRTSPClient *client, const GstRTSPUrl *uri, GstRTSPMessage *request)
+find_media (GstRTSPClient *client, GstRTSPUrl *uri, GstRTSPMessage *request)
 {
   GstRTSPMediaFactory *factory;
   GstRTSPMedia *media;
index 84ac2fe..02614e6 100644 (file)
@@ -327,7 +327,7 @@ default_gen_key (GstRTSPMediaFactory *factory, const GstRTSPUrl *url)
 {
   gchar *result;
 
-  result = gst_rtsp_url_get_request_uri (url);
+  result = gst_rtsp_url_get_request_uri ((GstRTSPUrl *)url);
 
   return result;
 }