Skip to content
  • vjaquez@igalia.com's avatar
    Simplify MediaPlayerPrivateGStreamerBase::createVideoSink() · a8e0dce8
    vjaquez@igalia.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125077
    
    Remove the method's unused parameter.
    Remove the GStreamer 0.10.22 run-time validation, since we are using
    GStreamer 1.0 officially.
    Remove the creation of a spurious Bin for the video sink, since
    either the fpssink or the webkitsink are valid sink elements.
    Change fpsink to a GRefPtr.
    
    Now, createVideoSink() returns a simple pointer to the created sink
    element.
    
    Reviewed by Philippe Normand.
    
    No new tests, no behavior changes.
    
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
    (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
    (WebCore::MediaPlayerPrivateGStreamerBase::createVideoSink):
    (WebCore::MediaPlayerPrivateGStreamerBase::decodedFrameCount):
    (WebCore::MediaPlayerPrivateGStreamerBase::droppedFrameCount):
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a8e0dce8