[0.11] gst-plugins-good: tests: use atexit, g_atexit has been deprecated in glib master

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Jan 10 05:33:02 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: abd27e2caa247721897032864e0c0b28e21fb798
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=abd27e2caa247721897032864e0c0b28e21fb798

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Mon Dec 12 10:18:14 2011 +0000

tests: use atexit, g_atexit has been deprecated in glib master

---

 tests/check/elements/souphttpsrc.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tests/check/elements/souphttpsrc.c b/tests/check/elements/souphttpsrc.c
index 7a1b677..9fc8f7c 100644
--- a/tests/check/elements/souphttpsrc.c
+++ b/tests/check/elements/souphttpsrc.c
@@ -23,6 +23,8 @@
 # include "config.h"
 #endif
 
+#include <stdlib.h>
+
 #include <glib.h>
 #include <glib/gprintf.h>
 #include <libsoup/soup-address.h>
@@ -454,7 +456,7 @@ souphttpsrc_suite (void)
 
   suite_add_tcase (s, tc_chain);
   run_server (&http_port, &https_port);
-  g_atexit (stop_server);
+  atexit (stop_server);
   tcase_add_test (tc_chain, test_first_buffer_has_offset);
   tcase_add_test (tc_chain, test_redirect_yes);
   tcase_add_test (tc_chain, test_redirect_no);



More information about the gstreamer-commits mailing list