rtsp-client: Use a random session ID in the SDP
authorSebastian Dröge <sebastian@centricular.com>
Sun, 18 Jan 2015 18:08:36 +0000 (19:08 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 18 Jan 2015 18:08:36 +0000 (19:08 +0100)
commit69e346419a16dbfd0a23a5e5169f606e55c31fa2
tree59336b62af371092749f5b6f6eb289314b0c0086
parent634abb9906d4251d3f4efd5e31fd0d1968b1e457
rtsp-client: Use a random session ID in the SDP

RFC4566 Section 5.2 says that it should make the username, session id,
nettype, addrtype and unicast address tuple globally unique. Always using
1188340656180883 is not going to guarantee that: https://xkcd.com/221/

Instead let's create a 64 bit random number, which at least brings us
closer to the goal of global uniqueness.

https://tools.ietf.org/html/rfc4566#section-5.2
gst/rtsp-server/rtsp-client.c