[Tizen-submit] 2531: Changes to Tizen:Wayland/webkit2-efl

noreply at tizen.org noreply at tizen.org
Mon Apr 22 11:18:27 GMT 2013


Hi,
Mikko Ylinen have made the following changes to webkit2-efl in project Tizen:Wayland. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #2531

  submit:       Tizen:Wayland:build/webkit2-efl(cleanup) -> Tizen:Wayland


Message:
Submitter: Mikko Ylinen <mikko.ylinen at intel.com>
Comments: Make webkit policy aware. (Partially) fixes TIVI-619.
Git project: profile/ivi/webkit-efl
Tag: submit/2.0alpha-wayland/20130422.111327
Commit: c573ff7 Update changelog

State:   new        2013-04-22T03:47:36 tizenrobot
Comment: <no comment>
changes files:
--------------
--- webkit2-efl.changes
+++ webkit2-efl.changes
@@ -0,0 +1,4 @@
+* Mon Apr 22 2013 Mikko Ylinen <mikko.ylinen at intel.com> submit/2.0alpha-wayland/20130316.011029 at 24c29ac
+- change media role from music to browser
+- tagging audio streams and changing audio sink to pulseaudio
+

spec files:
-----------
--- webkit2-efl.spec
+++ webkit2-efl.spec
@@ -2,7 +2,7 @@
 Summary: Webkit2 EFL
 Version: 2.0_beta_118996_0.6.24
 Release: 1
-VCS:        profile/ivi/webkit-efl#submit/2.0alpha-wayland/20130316.011029-0-gd0bad3a
+VCS:        profile/ivi/webkit-efl#submit/2.0alpha-wayland/20130422.111327-0-gc573ff7
 Group: System Environment/Libraries
 License: BSD
 Source0: %{name}-%{version}.tar.gz

other changes:
--------------

++++++ webkit2-efl-2.0_beta_118996_0.6.24.tar.gz
--- /Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
+++ /Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
@@ -92,9 +92,11 @@
 
 void AudioDestinationGStreamer::finishBuildingPipelineAfterWavParserPadReady(GstPad* pad)
 {
+    GstStructure *props;
+
     ASSERT(m_wavParserAvailable);
 
-    GRefPtr<GstElement> audioSink = gst_element_factory_make("autoaudiosink", 0);
+    GRefPtr<GstElement> audioSink = gst_element_factory_make("pulsesink", 0);
     m_audioSinkAvailable = audioSink;
 
     if (!audioSink) {
@@ -102,6 +104,10 @@
         return;
     }
 
+    props = gst_structure_from_string("props,media.role=music", NULL);
+    g_object_set(audioSink.get(), "stream-properties", props, NULL);
+    gst_structure_free(props);
+
     // Autoaudiosink does the real sink detection in the GST_STATE_NULL->READY transition
     // so it's best to roll it to READY as soon as possible to ensure the underlying platform
     // audiosink was loaded correctly.
--- /Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
+++ /Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
@@ -1709,11 +1709,35 @@
     }
 }
 
+const char * MediaPlayerPrivateGStreamer::mediaClass() const
+{
+    static const gchar *default_media_class = "browser";
+
+    return default_media_class;
+}
+
 void MediaPlayerPrivateGStreamer::createGSTPlayBin()
 {
     ASSERT(!m_playBin);
+    const gchar *media_class = mediaClass();
+
     m_playBin = gst_element_factory_make(gPlaybinName, "play");
 
+    GstElement *sink = gst_element_factory_make("pulsesink", "audio-sink");
+    if (sink != NULL) {
+        GstStructure *props;
+        gchar prop_str[256] = "props,media.role=";
+
+        strncat(prop_str, media_class, sizeof(prop_str));
+	prop_str[sizeof(prop_str)-1] = 0;
+
+        props = gst_structure_from_string(prop_str, NULL);
+        g_object_set(sink, "stream-properties", props, NULL);
+        gst_structure_free(props);
+

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list