[Webkit-unassigned] [Bug 78883] [GStreamer] AudioSourceProvider support in the MediaPlayer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 11 06:25:23 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=78883





--- Comment #20 from Sebastian Dröge <slomo at circular-chaos.org>  2013-01-11 06:27:12 PST ---
(From update of attachment 181320)
View in context: https://bugs.webkit.org/attachment.cgi?id=181320&action=review

Looks good in general

> Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp:75
> +    memcpy(bus->channel(channelNumber)->mutableData(), reinterpret_cast<float*>(info.data), info.size);

The reinterpret_cast here shouldn't be necessary

> Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp:106
> +    GstElement* audioSink = gst_element_factory_make("autoaudiosink", 0);

You might need a audioconvert and audioresample before/after the volume element

> Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp:141
> +        g_signal_handlers_disconnect_by_func(deinterleave.get(), reinterpret_cast<gpointer>(onGStreamerDeinterleaveReadyCallback), this);

It's far more efficient to store the signal handler IDs from g_signal_connect() and disconnect via them here

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list