mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
network/http-launch: Minor format changes
This commit is contained in:
parent
bb90ddfad1
commit
d72375c22d
1 changed files with 8 additions and 7 deletions
|
@ -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);
|
||||
|
@ -399,7 +401,6 @@ main (gint argc, gchar ** argv)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
srcpad = gst_element_get_static_pad (stream, "src");
|
||||
if (!srcpad) {
|
||||
g_print ("no \"src\" pad in element \"stream\" found\n");
|
||||
|
|
Loading…
Reference in a new issue