rtspconnection: we can use GLib 2.18 API unconditionally now
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Oct 2009 09:32:17 +0000 (10:32 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 7 Oct 2009 09:32:17 +0000 (10:32 +0100)
gst-libs/gst/rtsp/gstrtspconnection.c

index 136d40a..088a67e 100644 (file)
@@ -917,12 +917,7 @@ 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));