Changeset 232015 in webkit


Ignore:
Timestamp:
May 21, 2018 8:28:28 AM (6 years ago)
Author:
aboya@igalia.com
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:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r232014 r232015  
     12018-05-21  Alicia Boya García  <aboya@igalia.com>
     2
     3        [MSE][GStreamer] Stream::decodebinSinkPad is read but never assigned
     4        https://bugs.webkit.org/show_bug.cgi?id=185724
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        This is a dead code removal patch; except when a Stream instance
     9        happens to be instantiated in such a place that the non-initialized
     10        decodeSinkPad is != 0, then it is a crash bug fix.
     11
     12        * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
     13        (webKitMediaSrcLinkStreamToSrcPad):
     14        * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h:
     15
    1162018-05-21  Alicia Boya García  <aboya@igalia.com>
    217
  • trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp

    r231351 r232015  
    479479    gst_pad_set_active(ghostpad, TRUE);
    480480    gst_element_add_pad(GST_ELEMENT(stream->parent), ghostpad);
    481 
    482     if (stream->decodebinSinkPad) {
    483         GST_DEBUG_OBJECT(stream->parent, "A decodebin was previously used for this source, trying to reuse it.");
    484         // FIXME: error checking here. Not sure what to do if linking
    485         // fails though, because decodebin is out of this source
    486         // element's scope, in theory.
    487         gst_pad_link(ghostpad, stream->decodebinSinkPad);
    488     }
    489481}
    490482
  • trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamerPrivate.h

    r222972 r232015  
    5252    // AppSrc. Never modified after first assignment.
    5353    GstElement* appsrc;
    54     GstPad* decodebinSinkPad;
    5554
    5655    // Never modified after first assignment.
Note: See TracChangeset for help on using the changeset viewer.