summaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorLuis de Arquer <ldearquer@gmail.com>2015-02-21 13:49:58 +0000
committerLuis de Arquer <ldearquer@gmail.com>2015-02-21 13:49:58 +0000
commitd72375c22d070774704adf6856dc942c17493238 (patch)
treecc8d4e21585291bcce2519b8f58e74b03f16e2b3 /network
parentbb90ddfad112f6b5178afe40befe76c268aed546 (diff)
network/http-launch: Minor format changes
Diffstat (limited to 'network')
-rw-r--r--network/http-launch/http-launch.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/network/http-launch/http-launch.c b/network/http-launch/http-launch.c
index c2eea6c..8732326 100644
--- a/network/http-launch/http-launch.c
+++ b/network/http-launch/http-launch.c
@@ -108,7 +108,8 @@ client_message (Client * client, const gchar * data, guint len)
http_version = "HTTP/1.0";
if (parts[1] && strcmp (parts[1], "/") == 0) {
- response = g_strdup_printf ("%s 200 OK\r\n%s\r\n", http_version, content_type);
+ response = g_strdup_printf ("%s 200 OK\r\n%s\r\n", http_version,
+ content_type);
} else {
response = g_strdup_printf ("%s 404 Not Found\r\n\r\n", http_version);
}
@@ -127,7 +128,8 @@ client_message (Client * client, const gchar * data, guint len)
http_version = "HTTP/1.0";
if (parts[1] && strcmp (parts[1], "/") == 0) {
- response = g_strdup_printf ("%s 200 OK\r\n%s\r\n", http_version, content_type);
+ response = g_strdup_printf ("%s 200 OK\r\n%s\r\n", http_version,
+ content_type);
ok = TRUE;
} else {
response = g_strdup_printf ("%s 404 Not Found\r\n\r\n", http_version);
@@ -379,9 +381,9 @@ main (gint argc, gchar ** argv)
gst_object_unref (bin);
return -3;
}
-
- /*
- * Make the HTTP header 'Content-type' if we are trying to create a
+
+ /*
+ * Make the HTTP header 'Content-type' if we are trying to create a
* MJPEG (or any other multipart) stream.
*/
content_type = g_strdup ("");
@@ -395,11 +397,10 @@ main (gint argc, gchar ** argv)
/* Free default empty string "" created above, and create new string */
g_free(content_type);
content_type = g_strdup_printf ("Content-Type: "
- "multipart/x-mixed-replace;boundary=--%s\r\n", boundary);
+ "multipart/x-mixed-replace;boundary=--%s\r\n", boundary);
}
}
-
srcpad = gst_element_get_static_pad (stream, "src");
if (!srcpad) {
g_print ("no \"src\" pad in element \"stream\" found\n");