Use 127.0.0.1 instead of 'localhost'.
authoreojin.ham <eojin.ham@samsung.com>
Tue, 16 Apr 2013 01:19:45 +0000 (10:19 +0900)
committereojin.ham <eojin.ham@samsung.com>
Tue, 16 Apr 2013 03:06:37 +0000 (12:06 +0900)
[Title] Use 127.0.0.1 instead of 'localhost'.
[Issue#] http://slp-info.sec.samsung.net/bugs/browse/S1-13606
[Problem] 'SelfCamera' doesn't work .
[Cause] Some device can't map 'localhost' to 127.0.0.1
[Solution] Use 127.0.0.1 instead of 'localhost'.

Change-Id: I3c5882eabf9410f1661c54031241483eb7f8afe5

Source/WebCore/platform/graphics/gstreamer/tizen/WebKitCameraSourceGStreamerTizen.cpp
Source/WebCore/platform/mediastream/tizen/LocalMediaServer.cpp

index 2234cef..8fbfac0 100644 (file)
@@ -198,7 +198,7 @@ static void webkit_camera_src_init(WebKitCameraSrc* src)
     g_object_set(G_OBJECT(priv->videoCaps), "caps", caps, NULL);
     gst_caps_unref(caps);
     g_object_set(priv->src, "protocol", 0, NULL);
-    g_object_set(priv->src, "host", "localhost", NULL);
+    g_object_set(priv->src, "host", "127.0.0.1", NULL);
     g_object_set(priv->src, "port", DEFAULT_IP_CAMERA_PORT, NULL);
     g_object_set(priv->src, "do-timestamp", true, NULL);
 
index 965ee0f..86e48c0 100644 (file)
@@ -65,7 +65,7 @@ void LocalMediaServer::createPipeline()
     gst_caps_unref(caps);
 
     GstElement* sink = gst_element_factory_make("tcpserversink", 0);
-    g_object_set(sink, "host", "localhost", NULL);
+    g_object_set(sink, "host", "127.0.0.1", NULL);
     g_object_set(sink, "port", defaultIpCameraPort, NULL);
 
     GstElement* csp = gst_element_factory_make("ffmpegcolorspace", 0);