Bug 167834 - Playback stalls when a SourceBuffer append causes frame eviction
Summary: Playback stalls when a SourceBuffer append causes frame eviction
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jer Noble
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-02-04 01:35 PST by Jer Noble
Modified: 2017-02-06 13:50 PST (History)
5 users (show)

See Also:


Attachments
Patch (82.61 KB, patch)
2017-02-04 01:59 PST, Jer Noble
no flags Details | Formatted Diff | Diff
Patch (82.48 KB, patch)
2017-02-04 02:04 PST, Jer Noble
no flags Details | Formatted Diff | Diff
MediaTime-pre.txt (409 bytes, text/plain)
2017-02-04 02:06 PST, Jer Noble
no flags Details
MediaTime-post.txt (402 bytes, text/plain)
2017-02-04 02:06 PST, Jer Noble
no flags Details
MSERemoveCodedFrames-pre.txt (1.13 KB, text/plain)
2017-02-04 02:07 PST, Jer Noble
no flags Details
MSERemoveCodedFrames-post.txt (1.11 KB, text/plain)
2017-02-04 02:07 PST, Jer Noble
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jer Noble 2017-02-04 01:35:36 PST
Playback stalls when a SourceBuffer append causes frame eviction
Comment 1 Jer Noble 2017-02-04 01:49:34 PST
<rdar://problem/30107622>
Comment 2 Jer Noble 2017-02-04 01:59:25 PST
Created attachment 300611 [details]
Patch
Comment 3 WebKit Commit Bot 2017-02-04 02:02:01 PST
Attachment 300611 [details] did not pass style-queue:


ERROR: Tools/TestWebKitAPI/Tests/WebCore/SampleMap.cpp:51:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Tools/TestWebKitAPI/Tests/WebCore/SampleMap.cpp:64:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: Tools/TestWebKitAPI/Tests/WebCore/SampleMap.cpp:69:  Missing space inside { }.  [whitespace/braces] [5]
ERROR: Tools/TestWebKitAPI/Tests/WebCore/SampleMap.cpp:98:  This { should be at the end of the previous line  [whitespace/braces] [4]
ERROR: PerformanceTests/MediaTime/main.cpp:26:  Streams are highly discouraged.  [readability/streams] [3]
ERROR: PerformanceTests/MediaTime/main.cpp:27:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: PerformanceTests/MediaTime/main.cpp:28:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: PerformanceTests/MediaTime/main.cpp:51:  sq_sum is incorrectly named. Don't use underscores in your identifier names.  [readability/naming/underscores] [4]
ERROR: PerformanceTests/MediaTime/main.cpp:77:  A case label should not be indented, but line up with its switch statement.  [whitespace/indent] [4]
ERROR: PerformanceTests/MediaTime/main.cpp:76:  Missing space before ( in switch(  [whitespace/parens] [5]
ERROR: Source/WTF/wtf/MediaTime.cpp:389:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 11 in 21 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Jer Noble 2017-02-04 02:04:27 PST
Created attachment 300612 [details]
Patch
Comment 5 Jer Noble 2017-02-04 02:06:00 PST
Created attachment 300613 [details]
MediaTime-pre.txt
Comment 6 Jer Noble 2017-02-04 02:06:47 PST
Created attachment 300614 [details]
MediaTime-post.txt
Comment 7 Jer Noble 2017-02-04 02:07:28 PST
Created attachment 300615 [details]
MSERemoveCodedFrames-pre.txt
Comment 8 Jer Noble 2017-02-04 02:07:42 PST
Created attachment 300616 [details]
MSERemoveCodedFrames-post.txt
Comment 9 Jer Noble 2017-02-04 02:09:51 PST
Performance testing shows a 250% speed increase in comparing uniform MediaTime values (see MediaTime-pre/post.txt) and and 150% speed increase in appending and removing media data from SourceBuffers.
Comment 10 WebKit Commit Bot 2017-02-06 13:50:55 PST
Comment on attachment 300612 [details]
Patch

Clearing flags on attachment: 300612

Committed r211746: <http://trac.webkit.org/changeset/211746>
Comment 11 WebKit Commit Bot 2017-02-06 13:50:59 PST
All reviewed patches have been landed.  Closing bug.