Title: [232015] trunk/Source/WebCore
Revision
232015
Author
[email protected]
Date
2018-05-21 08:28:28 -0700 (Mon, 21 May 2018)

Log Message

[MSE][GStreamer] Stream::decodebinSinkPad is read but never assigned
https://bugs.webkit.org/show_bug.cgi?id=185724

Reviewed by Xabier Rodriguez-Calvar.

This is a dead code removal patch; except when a Stream instance
happens to be instantiated in such a place that the non-initialized
decodeSinkPad is != 0, then it is a crash bug fix.

* platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
(webKitMediaSrcLinkStreamToSrcPad):
* platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (232014 => 232015)


--- trunk/Source/WebCore/ChangeLog	2018-05-21 11:52:33 UTC (rev 232014)
+++ trunk/Source/WebCore/ChangeLog	2018-05-21 15:28:28 UTC (rev 232015)
@@ -1,5 +1,20 @@
 2018-05-21  Alicia Boya García  <[email protected]>
 
+        [MSE][GStreamer] Stream::decodebinSinkPad is read but never assigned
+        https://bugs.webkit.org/show_bug.cgi?id=185724
+
+        Reviewed by Xabier Rodriguez-Calvar.
+
+        This is a dead code removal patch; except when a Stream instance
+        happens to be instantiated in such a place that the non-initialized
+        decodeSinkPad is != 0, then it is a crash bug fix.
+
+        * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
+        (webKitMediaSrcLinkStreamToSrcPad):
+        * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h:
+
+2018-05-21  Alicia Boya García  <[email protected]>
+
         [MSE][GStreamer] Force segment.start = 0 after matroskademux
         https://bugs.webkit.org/show_bug.cgi?id=185740
 

Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp (232014 => 232015)


--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp	2018-05-21 11:52:33 UTC (rev 232014)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp	2018-05-21 15:28:28 UTC (rev 232015)
@@ -478,14 +478,6 @@
 
     gst_pad_set_active(ghostpad, TRUE);
     gst_element_add_pad(GST_ELEMENT(stream->parent), ghostpad);
-
-    if (stream->decodebinSinkPad) {
-        GST_DEBUG_OBJECT(stream->parent, "A decodebin was previously used for this source, trying to reuse it.");
-        // FIXME: error checking here. Not sure what to do if linking
-        // fails though, because decodebin is out of this source
-        // element's scope, in theory.
-        gst_pad_link(ghostpad, stream->decodebinSinkPad);
-    }
 }
 
 void webKitMediaSrcLinkParser(GstPad* sourcePad, GstCaps* caps, Stream* stream)

Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h (232014 => 232015)


--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h	2018-05-21 11:52:33 UTC (rev 232014)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h	2018-05-21 15:28:28 UTC (rev 232015)
@@ -51,7 +51,6 @@
 
     // AppSrc. Never modified after first assignment.
     GstElement* appsrc;
-    GstPad* decodebinSinkPad;
 
     // Never modified after first assignment.
     WebCore::SourceBufferPrivateGStreamer* sourceBuffer;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to