Bug 139487 - [GStreamer] Use a buffer pool for the allocations in AudioDestination
Summary: [GStreamer] Use a buffer pool for the allocations in AudioDestination
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Minor
Assignee: Sebastian Dröge (slomo)
URL:
Keywords:
Depends on:
Blocks: 139490
  Show dependency treegraph
 
Reported: 2014-12-10 08:40 PST by Sebastian Dröge (slomo)
Modified: 2014-12-10 10:37 PST (History)
4 users (show)

See Also:


Attachments
Patch (3.96 KB, patch)
2014-12-10 08:41 PST, Sebastian Dröge (slomo)
no flags Details | Formatted Diff | Diff
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 Details
Patch (4.43 KB, patch)
2014-12-10 09:49 PST, Sebastian Dröge (slomo)
no flags Details | Formatted Diff | Diff
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 Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Dröge (slomo) 2014-12-10 08:40:10 PST
Patch coming in a few seconds.
Comment 1 Sebastian Dröge (slomo) 2014-12-10 08:41:09 PST
Created attachment 243026 [details]
Patch
Comment 2 Build Bot 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
Comment 3 Build Bot 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
Comment 4 Philippe Normand 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.
Comment 5 Sebastian Dröge (slomo) 2014-12-10 09:49:29 PST
Created attachment 243036 [details]
Patch
Comment 6 Philippe Normand 2014-12-10 10:04:36 PST
Comment on attachment 243036 [details]
Patch

LGTM!
Comment 7 Build Bot 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
Comment 8 Build Bot 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
Comment 9 Philippe Normand 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>
Comment 10 Philippe Normand 2014-12-10 10:37:56 PST
All reviewed patches have been landed.  Closing bug.