WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188193
[GStreamer] Stop pushing buffers when seeking status changes
https://bugs.webkit.org/show_bug.cgi?id=188193
Summary
[GStreamer] Stop pushing buffers when seeking status changes
Charlie Turner
Reported
2018-07-31 05:14:36 PDT
[GStreamer] Stop pushing buffers when seeking status changes
Attachments
Patch
(4.90 KB, patch)
2018-07-31 05:18 PDT
,
Charlie Turner
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews205 for win-future
(13.05 MB, application/zip)
2018-07-31 21:04 PDT
,
EWS Watchlist
no flags
Details
Patch
(4.77 KB, patch)
2018-08-01 05:02 PDT
,
Charlie Turner
no flags
Details
Formatted Diff
Diff
Patch for landing
(4.78 KB, patch)
2018-08-02 01:45 PDT
,
Charlie Turner
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Charlie Turner
Comment 1
2018-07-31 05:18:03 PDT
Created
attachment 346153
[details]
Patch
EWS Watchlist
Comment 2
2018-07-31 21:03:54 PDT
Comment on
attachment 346153
[details]
Patch
Attachment 346153
[details]
did not pass win-ews (win): Output:
https://webkit-queues.webkit.org/results/8718998
New failing tests: http/tests/security/local-video-source-from-remote.html
EWS Watchlist
Comment 3
2018-07-31 21:04:06 PDT
Created
attachment 346256
[details]
Archive of layout-test-results from ews205 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews205 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Xabier Rodríguez Calvar
Comment 4
2018-07-31 23:37:09 PDT
Comment on
attachment 346153
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=346153&action=review
> Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:935 > + if (priv->isSeeking) { > + GST_TRACE_OBJECT(src, "Stopping buffer appends due to seek"); > + // A seek has happened in the middle of us breaking the > + // incoming data up from a previous request. Stop pushing > + // buffers that are now from the incorrect offset. > + break; > + }
I am perfectly ok with this here though I wonder if it would or not be better to have this check at the beginning, even maybe as: // A seek might happen while we run this pushes so we stop pushing if that happens. for (uint64_t currentOffset = 0; !priv->isSeeking && currentOffset < bufferSize; currentOffset += blockSize) {
Xabier Rodríguez Calvar
Comment 5
2018-07-31 23:38:14 PDT
(In reply to Xabier Rodríguez Calvar from
comment #4
)
> // A seek might happen while we run this pushes so we stop pushing if that > happens. > for (uint64_t currentOffset = 0; !priv->isSeeking && currentOffset < > bufferSize; currentOffset += blockSize) {
I guess we'd need to find a new home for the logging about the seeking situation.
Charlie Turner
Comment 6
2018-08-01 02:13:30 PDT
(In reply to Build Bot from
comment #2
)
> Comment on
attachment 346153
[details]
> Patch > >
Attachment 346153
[details]
did not pass win-ews (win): > Output:
https://webkit-queues.webkit.org/results/8718998
> > New failing tests: > http/tests/security/local-video-source-from-remote.html
In the layout-tests archive attachment, the crash log only contains No crash log found for DumpRenderTree:9828. Is there anywhere I can find more information about this crash?
Charlie Turner
Comment 7
2018-08-01 05:02:04 PDT
Created
attachment 346272
[details]
Patch I moved the check to just before the push_buffer so as to minimize a race window. The design of the web source will need some rework to avoid this completely
Charlie Turner
Comment 8
2018-08-02 01:45:39 PDT
Created
attachment 346366
[details]
Patch for landing
WebKit Commit Bot
Comment 9
2018-08-02 02:23:49 PDT
Comment on
attachment 346366
[details]
Patch for landing Clearing flags on attachment: 346366 Committed
r234497
: <
https://trac.webkit.org/changeset/234497
>
WebKit Commit Bot
Comment 10
2018-08-02 02:23:50 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug