RESOLVED FIXED 139487
[GStreamer] Use a buffer pool for the allocations in AudioDestination
https://bugs.webkit.org/show_bug.cgi?id=139487
Summary [GStreamer] Use a buffer pool for the allocations in AudioDestination
Sebastian Dröge (slomo)
Reported 2014-12-10 08:40:10 PST
Patch coming in a few seconds.
Attachments
Patch (3.96 KB, patch)
2014-12-10 08:41 PST, Sebastian Dröge (slomo)
no flags
Archive of layout-test-results from ews107 for mac-mountainlion-wk2 (700.84 KB, application/zip)
2014-12-10 09:18 PST, Build Bot
no flags
Patch (4.43 KB, patch)
2014-12-10 09:49 PST, Sebastian Dröge (slomo)
no flags
Archive of layout-test-results from ews106 for mac-mountainlion-wk2 (705.02 KB, application/zip)
2014-12-10 10:10 PST, Build Bot
no flags
Sebastian Dröge (slomo)
Comment 1 2014-12-10 08:41:09 PST
Build Bot
Comment 2 2014-12-10 09:18:25 PST
Comment on attachment 243026 [details] Patch Attachment 243026 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4519363323363328 New failing tests: fast/canvas/webgl/tex-image-and-sub-image-2d-with-canvas-rgb565.html
Build Bot
Comment 3 2014-12-10 09:18:28 PST
Created attachment 243031 [details] Archive of layout-test-results from ews107 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Philippe Normand
Comment 4 2014-12-10 09:42:26 PST
Comment on attachment 243026 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243026&action=review > Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:339 > + GstFlowReturn flow_ret = gst_buffer_pool_acquire_buffer(priv->pool, &channelBuffer, nullptr); > + > + if (flow_ret != GST_FLOW_OK) { Here you could avoid the flow_ret local variable. BTW we prefer camelCase naming :p > Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:349 > + gst_task_pause(src->priv->task.get()); > + return; Would be nice to emit an error message here but that's for another patch :) > Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:446 > + config = gst_buffer_pool_get_config(src->priv->pool); We try as much as possible to declare and assign variables in the same line. Here it could be done easily.
Sebastian Dröge (slomo)
Comment 5 2014-12-10 09:49:29 PST
Philippe Normand
Comment 6 2014-12-10 10:04:36 PST
Comment on attachment 243036 [details] Patch LGTM!
Build Bot
Comment 7 2014-12-10 10:10:23 PST
Comment on attachment 243036 [details] Patch Attachment 243036 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/5787313904812032 New failing tests: fast/canvas/webgl/tex-image-and-sub-image-2d-with-canvas-rgba4444.html
Build Bot
Comment 8 2014-12-10 10:10:27 PST
Created attachment 243041 [details] Archive of layout-test-results from ews106 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Philippe Normand
Comment 9 2014-12-10 10:37:50 PST
Comment on attachment 243036 [details] Patch Clearing flags on attachment: 243036 Committed r177079: <http://trac.webkit.org/changeset/177079>
Philippe Normand
Comment 10 2014-12-10 10:37:56 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.