Bug 199814

Summary: Add release logging to AudioSampleDataSource
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=198545
Attachments:
Description Flags
Patch
none
Patch for landing none

Description youenn fablet 2019-07-15 16:33:17 PDT
Currently some error cases are using logging. release logging might be better to debug cases when something wrong happens when data is pushed/pulled in the ring buffer.
Comment 1 Radar WebKit Bug Importer 2019-07-15 16:33:41 PDT
<rdar://problem/53128140>
Comment 2 youenn fablet 2019-07-15 17:49:23 PDT
Created attachment 374174 [details]
Patch
Comment 3 Eric Carlson 2019-07-16 04:49:19 PDT
Comment on attachment 374174 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=374174&action=review

> Source/WebCore/ChangeLog:16
> +        In that case, we change of logger when changing of MediaStreamTrackPrivate.

Nit: s/change of logger when changing of/change the logger when changing the/

> Source/WebCore/platform/audio/mac/AudioSampleDataSource.mm:278
> +            ALWAYS_LOG("sample ", timeStamp, " is not completely in range [", startFrame, " .. ", endFrame, "], returning ", framesAvailable, " frames");
> +            if (framesAvailable < sampleCount)
> +                ALWAYS_LOG("not enough data available, returning zeroes");

Nit: should these be ERROR_LOG?
Comment 4 youenn fablet 2019-07-17 08:42:52 PDT
Created attachment 374295 [details]
Patch for landing
Comment 5 WebKit Commit Bot 2019-07-17 11:11:42 PDT
Comment on attachment 374295 [details]
Patch for landing

Clearing flags on attachment: 374295

Committed r247522: <https://trac.webkit.org/changeset/247522>
Comment 6 WebKit Commit Bot 2019-07-17 11:11:44 PDT
All reviewed patches have been landed.  Closing bug.