Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GStreamer][MSE] Take playbin's states lock when sending seek event
https://bugs.webkit.org/show_bug.cgi?id=275566 Reviewed by NOBODY (OOPS!). This fixes possible race between application (triggering another seek from 'seeked' event) and 'state chagne' continuation (triggered by playbin). Top level bin element does change the state as result of 'async-done' handling from previous seek request (see gst_bin_continue_func in gstbin.c). Which may race with handling of 'async-start' posted by sinks on flushing seek. And may leave the pipeline in inconsistent state and 'hanging' seek that never finishes. By taking the states lock of top level bin element player will wait for possible state change continuation to complete before sending next seek event. Based on a patch by Eugene Mutavchi <[email protected]>. * Source/WebCore/platform/graphics/gstreamer/mse/MediaPlayerPrivateGStreamerMSE.cpp: (WebCore::MediaPlayerPrivateGStreamerMSE::doSeek):
- Loading branch information