Changeset 228281 in webkit


Ignore:
Timestamp:
Feb 8, 2018 10:38:29 AM (6 years ago)
Author:
Philippe Normand
Message:

[GStreamer] WebKit improperly handles missing GStreamer elements
https://bugs.webkit.org/show_bug.cgi?id=171205

Reviewed by Michael Catanzaro.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Add a
test checking the videoflip element was correctly created. It
might not be available on some exotic distros such as Gentoo.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r228279 r228281  
     12018-02-08  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] WebKit improperly handles missing GStreamer elements
     4        https://bugs.webkit.org/show_bug.cgi?id=171205
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     9        (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Add a
     10        test checking the videoflip element was correctly created. It
     11        might not be available on some exotic distros such as Gentoo.
     12
    1132018-02-08  Chris Fleizach  <cfleizach@apple.com>
    214
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r227061 r228281  
    21862186        // the image-orientation tag.
    21872187        GstElement* videoFlip = gst_element_factory_make("videoflip", nullptr);
    2188         g_object_set(videoFlip, "method", 8, nullptr);
    2189         g_object_set(m_pipeline.get(), "video-filter", videoFlip, nullptr);
     2188        if (videoFlip) {
     2189            g_object_set(videoFlip, "method", 8, nullptr);
     2190            g_object_set(m_pipeline.get(), "video-filter", videoFlip, nullptr);
     2191        } else
     2192            GST_WARNING("The videoflip element is missing, video rotation support is now disabled. Please check your gst-plugins-good installation.");
    21902193    }
    21912194
Note: See TracChangeset for help on using the changeset viewer.