Changeset 188956 in webkit


Ignore:
Timestamp:
Aug 26, 2015 1:04:25 AM (9 years ago)
Author:
Carlos Garcia Campos
Message:

Merge r188472 - [GStreamer] Handle missing plugins better at runtime
https://bugs.webkit.org/show_bug.cgi?id=146999

Reviewed by Carlos Garcia Campos.

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::createAudioSink): Warn the
user if autoaudiosink wasn't found at runtime. In that case
playbin will try to be smart by itself, hopefully. Also moved a
couple GST_WARNING calls to WARN_MEDIA_MESSAGE.
(WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Use
WARN_MEDIA_MESSAGE here as well.

Location:
releases/WebKitGTK/webkit-2.10/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.10/Source/WebCore/ChangeLog

    r188955 r188956  
     12015-08-14  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] Handle missing plugins better at runtime
     4        https://bugs.webkit.org/show_bug.cgi?id=146999
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     9        (WebCore::MediaPlayerPrivateGStreamer::createAudioSink): Warn the
     10        user if autoaudiosink wasn't found at runtime. In that case
     11        playbin will try to be smart by itself, hopefully. Also moved a
     12        couple GST_WARNING calls to WARN_MEDIA_MESSAGE.
     13        (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin): Use
     14        WARN_MEDIA_MESSAGE here as well.
     15
    1162015-08-24  Jinyoung Hur  <hur.ims@navercorp.com>
    217
  • releases/WebKitGTK/webkit-2.10/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r188121 r188956  
    18591859{
    18601860    m_autoAudioSink = gst_element_factory_make("autoaudiosink", 0);
     1861    if (!m_autoAudioSink) {
     1862        WARN_MEDIA_MESSAGE("GStreamer's autoaudiosink not found. Please check your gst-plugins-good installation");
     1863        return nullptr;
     1864    }
     1865
    18611866    g_signal_connect(m_autoAudioSink.get(), "child-added", G_CALLBACK(setAudioStreamPropertiesCallback), this);
    18621867
     
    18781883        GstElement* scale = gst_element_factory_make("scaletempo", nullptr);
    18791884        if (!scale) {
    1880             GST_WARNING("Failed to create scaletempo");
     1885            WARN_MEDIA_MESSAGE("Failed to create scaletempo");
    18811886            return m_autoAudioSink.get();
    18821887        }
     
    18961901
    18971902        if (!gst_element_link_many(scale, convert, resample, m_autoAudioSink.get(), nullptr)) {
    1898             GST_WARNING("Failed to link audio sink elements");
     1903            WARN_MEDIA_MESSAGE("Failed to link audio sink elements");
    18991904            gst_object_unref(audioSinkBin);
    19001905            return m_autoAudioSink.get();
     
    19101915#endif
    19111916    ASSERT_NOT_REACHED();
    1912     return 0;
     1917    return nullptr;
    19131918}
    19141919
     
    19681973
    19691974        if (!scale)
    1970             GST_WARNING("Failed to create scaletempo");
     1975            WARN_MEDIA_MESSAGE("Failed to create scaletempo");
    19711976        else
    19721977            g_object_set(m_pipeline.get(), "audio-filter", scale, nullptr);
Note: See TracChangeset for help on using the changeset viewer.