diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-10 20:18:24 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2009-08-10 20:18:24 +0100 |
commit | cb19626c8c7fc8ac1ab7e740e4ec776800dc290f (patch) | |
tree | 845e7c82caa30813a7526c418a4b38cdac4ddc31 | |
parent | 11ad341d35c539a77ba02f10a5b0060bc99a5540 (diff) |
rtspconnection: don't use GLib-2.18 function
g_checksum_reset() was added only in GLib 2.18, but we still require
only 2.16, so work around that if we only have 2.16. Fixes #591357.
-rw-r--r-- | gst-libs/gst/rtsp/gstrtspconnection.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index 18e18ebf0..954ee9870 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -920,7 +920,12 @@ auth_digest_compute_response (const gchar * method, memcpy (hex_a2, digest_string, strlen (digest_string)); /* compute KD */ +#if GLIB_CHECK_VERSION (2, 18, 0) g_checksum_reset (md5_context); +#else + g_checksum_free (md5_context); + md5_context = g_checksum_new (G_CHECKSUM_MD5); +#endif g_checksum_update (md5_context, (const guchar *) hex_a1, strlen (hex_a1)); g_checksum_update (md5_context, (const guchar *) ":", 1); g_checksum_update (md5_context, (const guchar *) nonce, strlen (nonce)); |