[Webkit-unassigned] [Bug 224235] New: [GStreamer] Only seek to change the rate un updatePlaybackRate() when needed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Apr 6 06:45:10 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224235
Bug ID: 224235
Summary: [GStreamer] Only seek to change the rate un
updatePlaybackRate() when needed
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebKitGTK
Assignee: webkit-unassigned at lists.webkit.org
Reporter: eocanha at igalia.com
CC: bugs-noreply at webkitgtk.org
A seek is used by MediaPlayerPrivateGStreamer to update the playback rate used in the pipeline. There's a special case when the rate is 0.0. This actually means "paused" and, when set, the pipeline is changed to PAUSED and no updatePlaybackRate() call is made because of an early return (and therefore, no seek). When the rate is restored to a non-zero value, the pipeline is set again to PLAYING, but an unconditional call to updatePlaybackRate() is done, leading to a seek.
It should be possible to call updatePlaybackRate() only if the non-zero rate changed with respect to the original one, instead of always doing it. This would avoid unneeded seeks, which are complex operations that can trigger collateral issues such as the one addressed in https://bugs.webkit.org/show_bug.cgi?id=223742.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210406/0b05c5f7/attachment-0001.htm>
More information about the webkit-unassigned
mailing list