Title: [232058] trunk/Source/WebCore
- Revision
- 232058
- Author
- [email protected]
- Date
- 2018-05-22 02:32:46 -0700 (Tue, 22 May 2018)
Log Message
[MSE][GStreamer] Fix the deadlock caused by bug 185242 (r231351)
https://bugs.webkit.org/show_bug.cgi?id=185723
Patch by Yacine Bandou <[email protected]> on 2018-05-22
Reviewed by Xabier Rodriguez-Calvar.
After a detailed investigation, we found that, the patch r231351 doesn't fix the crash that expected to fix,
it just replaces it by a deadlock. Now the crash is fixed in the bug 185725.
This Patch will remove a part of r231351 that causes the deadlock.
* platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
(webKitMediaSrcFreeStream):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (232057 => 232058)
--- trunk/Source/WebCore/ChangeLog 2018-05-22 08:20:00 UTC (rev 232057)
+++ trunk/Source/WebCore/ChangeLog 2018-05-22 09:32:46 UTC (rev 232058)
@@ -1,3 +1,18 @@
+2018-05-22 Yacine Bandou <[email protected]>
+
+ [MSE][GStreamer] Fix the deadlock caused by bug 185242 (r231351)
+ https://bugs.webkit.org/show_bug.cgi?id=185723
+
+ Reviewed by Xabier Rodriguez-Calvar.
+
+ After a detailed investigation, we found that, the patch r231351 doesn't fix the crash that expected to fix,
+ it just replaces it by a deadlock. Now the crash is fixed in the bug 185725.
+
+ This Patch will remove a part of r231351 that causes the deadlock.
+
+ * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
+ (webKitMediaSrcFreeStream):
+
2018-05-21 Yusuke Suzuki <[email protected]>
Use more C++17
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp (232057 => 232058)
--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp 2018-05-22 08:20:00 UTC (rev 232057)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp 2018-05-22 09:32:46 UTC (rev 232058)
@@ -505,17 +505,8 @@
// Don't trigger callbacks from this appsrc to avoid using the stream anymore.
gst_app_src_set_callbacks(GST_APP_SRC(stream->appsrc), &disabledAppsrcCallbacks, nullptr, nullptr);
gst_app_src_end_of_stream(GST_APP_SRC(stream->appsrc));
- gst_element_set_state(stream->appsrc, GST_STATE_NULL);
- gst_bin_remove(GST_BIN(source), stream->appsrc);
- stream->appsrc = nullptr;
}
- if (stream->parser) {
- gst_element_set_state(stream->parser, GST_STATE_NULL);
- gst_bin_remove(GST_BIN(source), stream->parser);
- stream->parser = nullptr;
- }
-
GST_OBJECT_LOCK(source);
switch (stream->type) {
case WebCore::Audio:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes