[Webkit-unassigned] [Bug 185592] [MSE][GStreamer] Before deleting the stream from WebKitMediaSource we should unlink its elements and flush the appsrc.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 14 09:02:52 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185592

Alicia Boya García <aboya at igalia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #340280|review?                     |review-
              Flags|                            |

--- Comment #10 from Alicia Boya García <aboya at igalia.com> ---
Comment on attachment 340280
  --> https://bugs.webkit.org/attachment.cgi?id=340280
Patch

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

> Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:540
> +            return;

This is the reason your patch removes the wait for the background thread. Flushing an unlinked element is an error, therefore gst_element_send_event() returns != 0 and the function returns here, not reaching `gst_element_set_state(stream->appsrc, GST_STATE_NULL);` which is a few lines below.

With the patch the pipeline state is not changed to NULL, therefore the streaming thread is not finished -- and incidentally, no wait for its termination occurs.

-- 
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/20180514/f82aa8f1/attachment.html>


More information about the webkit-unassigned mailing list