From 0da5679c6f7dca546969af0cf82a93eb1c15e7ed Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 15 Jun 2017 19:09:26 +0200 Subject: [PATCH] rtspsrc: do not checksum the stream id https://bugzilla.gnome.org/show_bug.cgi?id=783307 --- gst/rtsp/gstrtspsrc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 6236771..0353498 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -1506,12 +1506,13 @@ gst_rtspsrc_collect_connections (GstRTSPSrc * src, const GstSDPMessage * sdp, static gchar * make_stream_id (GstRTSPStream * stream, const GstSDPMedia * media) { - gchar *stream_id = g_strdup_printf ("%s%d%d%s%d", media->media, media->port, + gchar *stream_id = + g_strdup_printf ("%s:%d:%d:%s:%d", media->media, media->port, media->num_ports, media->proto, stream->default_pt); - gchar *res = g_compute_checksum_for_string (G_CHECKSUM_MD5, stream_id, -1); - g_free (stream_id); - return res; + g_strcanon (stream_id, G_CSET_a_2_z G_CSET_A_2_Z G_CSET_DIGITS, ':'); + + return stream_id; } /* m= RTP/AVP -- 2.7.4