slomo gst-plugins-good: gst-plugins-good/ gst-plugins-good/tests/check/elements/

[email protected] Tue, 9 Dec 2008 01:09:40 -0800 (PST)
Newsgroups gmane.comp.video.gstreamer.cvs
Message-ID <[email protected]>
CVS Root:       /cvs/gstreamer
Module:         gst-plugins-good
Changes by:     slomo
Date:           Tue Dec 09 2008  09:09:40 UTC

Log message:
* tests/check/elements/souphttpsrc.c: (GST_START_TEST),
(run_server):
The ports in libsoup are unsigned integers and not signed
integers.

Modified files:
    .               : ChangeLog
    tests/check/elements: souphttpsrc.c

Links:
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.3853&r2=1.3854
http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/tests/check/elements/souphttpsrc.c.diff?r1=1.8&r2=1.9

====Begin Diffs====
Index: ChangeLog
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v
retrieving revision 1.3853
retrieving revision 1.3854
diff -u -d -r1.3853 -r1.3854
--- ChangeLog	8 Dec 2008 18:30:59 -0000	1.3853
+++ ChangeLog	9 Dec 2008 09:09:24 -0000	1.3854
@@ -1,3 +1,21 @@
+2008-12-09  Sebastian Dröge  <[email protected]>
+
+	* tests/check/elements/souphttpsrc.c: (GST_START_TEST),
+	(run_server):
+	The ports in libsoup are unsigned integers and not signed
+	integers.
+2008-12-08  Sebastian Dröge  <[email protected]>
+	* ext/dv/gstdvdemux.c: (gst_dvdemux_add_video_pad),
+	(gst_dvdemux_add_audio_pad), (gst_dvdemux_remove_pads),
+	(gst_dvdemux_demux_audio), (gst_dvdemux_demux_video),
+	(gst_dvdemux_chain), (gst_dvdemux_loop),
+	(gst_dvdemux_change_state):
+	Add srcpads only when they're needed. If we add all pads in any
+	case we will get a stalling audio pad if the stream contains
+	no audio, which is the case for many MXF files.
 2008-12-08  Sebastian Dröge  <[email protected]>
 
 	* ext/dv/gstdvdemux.c: (gst_dvdemux_handle_src_event):
Index: souphttpsrc.c
RCS file: /cvs/gstreamer/gst-plugins-good/tests/check/elements/souphttpsrc.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- souphttpsrc.c	27 Nov 2008 16:43:24 -0000	1.8
+++ souphttpsrc.c	9 Dec 2008 09:09:25 -0000	1.9
@@ -33,7 +33,7 @@
 #include <libsoup/soup-auth-domain-digest.h>
 #include <gst/check/gstcheck.h>
-static int http_port = 0, https_port = 0;
+static guint http_port = 0, https_port = 0;
 gboolean redirect = TRUE;
@@ -50,7 +50,7 @@
 static const char *basic_auth_path = "/basic_auth";
 static const char *digest_auth_path = "/digest_auth";
-static int run_server (int *http_port, int *https_port);
+static int run_server (guint * http_port, guint * https_port);
 static void
@@ -193,21 +193,21 @@
 GST_START_TEST (test_first_buffer_has_offset)
 {
-  fail_unless (run_test ("http://127.0.0.1:%d/", http_port) == 0);
+  fail_unless (run_test ("http://127.0.0.1:%u/", http_port) == 0);
 }
 GST_END_TEST;
 GST_START_TEST (test_not_found)
-  fail_unless (run_test ("http://127.0.0.1:%d/404", http_port) == 404);
+  fail_unless (run_test ("http://127.0.0.1:%u/404", http_port) == 404);
 GST_START_TEST (test_forbidden)
-  fail_unless (run_test ("http://127.0.0.1:%d/403", http_port) == 403);
+  fail_unless (run_test ("http://127.0.0.1:%u/403", http_port) == 403);
@@ -215,7 +215,7 @@
 GST_START_TEST (test_redirect_no)
   redirect = FALSE;
-  fail_unless (run_test ("http://127.0.0.1:%d/302", http_port) == 302);
+  fail_unless (run_test ("http://127.0.0.1:%u/302", http_port) == 302);
@@ -223,7 +223,7 @@
 GST_START_TEST (test_redirect_yes)
   redirect = TRUE;
-  fail_unless (run_test ("http://127.0.0.1:%d/302", http_port) == 0);
+  fail_unless (run_test ("http://127.0.0.1:%u/302", http_port) == 0);
@@ -233,7 +233,7 @@
   if (!https_port)
     GST_INFO ("Failed to start an HTTPS server; let's just skip this test.");
   else
-    fail_unless (run_test ("https://127.0.0.1:%d/", https_port) == 0);
+    fail_unless (run_test ("https://127.0.0.1:%u/", https_port) == 0);
@@ -244,7 +244,7 @@
   int rc;
   cookies = biscotti;
-  rc = run_test ("http://127.0.0.1:%d/", http_port);
+  rc = run_test ("http://127.0.0.1:%u/", http_port);
   cookies = NULL;
   fail_unless (rc == 0);
@@ -257,7 +257,7 @@
   user_id = good_user;
   user_pw = good_pw;
-  res = run_test ("http://127.0.0.1:%d%s", http_port, basic_auth_path);
+  res = run_test ("http://127.0.0.1:%u%s", http_port, basic_auth_path);
   GST_DEBUG ("Basic Auth user %s password %s res = %d", user_id, user_pw, res);
   user_id = user_pw = NULL;
   fail_unless (res == 0);
@@ -271,7 +271,7 @@
   user_id = bad_user;
   fail_unless (res == 401);
@@ -285,7 +285,7 @@
   user_pw = bad_pw;
@@ -299,7 +299,7 @@
-  res = run_test ("http://127.0.0.1:%d%s", http_port, digest_auth_path);
+  res = run_test ("http://127.0.0.1:%u%s", http_port, digest_auth_path);
   GST_DEBUG ("Digest Auth user %s password %s res = %d", user_id, user_pw, res);
@@ -313,7 +313,7 @@
@@ -327,7 +327,7 @@
@@ -557,18 +557,13 @@
 int
-run_server (int *http_port, int *https_port)
+run_server (guint * http_port, guint * https_port)
   SoupServer *server, *ssl_server;
-
-  int port = SOUP_ADDRESS_ANY_PORT;
-  int ssl_port = SOUP_ADDRESS_ANY_PORT;
+  guint port = SOUP_ADDRESS_ANY_PORT;
+  guint ssl_port = SOUP_ADDRESS_ANY_PORT;
   const char *ssl_cert_file = G_STRINGIFY (CHECKDATA_DIR) "/test-cert.pem";
   const char *ssl_key_file = G_STRINGIFY (CHECKDATA_DIR) "/test-key.pem";
   static int server_running = 0;
   SoupAuthDomain *domain = NULL;
@@ -581,11 +576,11 @@
   server = soup_server_new (SOUP_SERVER_PORT, port, NULL);
   if (!server) {
-    GST_DEBUG ("Unable to bind to server port %d", port);
+    GST_DEBUG ("Unable to bind to server port %u", port);
     return 1;
   }
   *http_port = soup_server_get_port (server);
-  GST_INFO ("HTTP server listening on port %d", *http_port);
+  GST_INFO ("HTTP server listening on port %u", *http_port);
   soup_server_add_handler (server, NULL, server_callback, NULL, NULL);
   domain = soup_auth_domain_basic_new (SOUP_AUTH_DOMAIN_REALM, realm,
       SOUP_AUTH_DOMAIN_BASIC_AUTH_CALLBACK, basic_auth_cb,
@@ -605,11 +600,11 @@
         SOUP_SERVER_SSL_KEY_FILE, ssl_key_file, NULL);
     if (!ssl_server) {
-      GST_DEBUG ("Unable to bind to SSL server port %d", ssl_port);
+      GST_DEBUG ("Unable to bind to SSL server port %u", ssl_port);
       return 1;
     }
     *https_port = soup_server_get_port (ssl_server);
-    GST_INFO ("HTTPS server listening on port %d", *https_port);
+    GST_INFO ("HTTPS server listening on port %u", *https_port);
     soup_server_add_handler (ssl_server, NULL, server_callback, NULL, NULL);
     soup_server_run_async (ssl_server);

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/

_______________________________________________
gstreamer-cvs-verbose mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs-verbose