Fix the issue that Web Audio test case fails on PR3.
authorShao Changbin <changbin.shao@intel.com>
Fri, 31 May 2013 01:42:18 +0000 (21:42 -0400)
committerGerrit Code Review <gerrit2@kim11>
Wed, 5 Jun 2013 02:00:45 +0000 (11:00 +0900)
[Title] Fix the issue that  Web Audio test case fails on PR3.
[Issue#] TWEB-1144
[Cause] assertion `G_VALUE_HOLDS_BOOLEAN (value)' failed when set GValue, because the value doesn't initialize its type.
[Solution] Initilize the GValue type.

Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp

index a45dd23..5ec294d 100755 (executable)
@@ -205,7 +205,8 @@ void AudioDestinationGStreamer::finishBuildingPipelineAfterWavParserPadReady(Gst
         return;
     }
 #if ENABLE(TIZEN_WEB_AUDIO)
-    GValue value;
+    GValue value = {0};
+    g_value_init(&value, G_TYPE_BOOLEAN);
     g_value_set_boolean(&value, true);
     gst_child_proxy_set_property(GST_OBJECT(audioSink.get()), "close-handle-on-prepare", &value);
 #endif