rtspsrc: do not checksum the stream id
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Thu, 15 Jun 2017 17:09:26 +0000 (19:09 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 16 Jun 2017 15:30:11 +0000 (17:30 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=783307

gst/rtsp/gstrtspsrc.c

index 6236771..0353498 100644 (file)
@@ -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=<media> <UDP port> RTP/AVP <payload>