Changeset 278935 in webkit


Ignore:
Timestamp:
Jun 16, 2021, 8:16:40 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] gst_element_get_request_pad deprecated in 1.20
https://bugs.webkit.org/show_bug.cgi?id=226974

Patch by Philippe Normand <pnormand@igalia.com> on 2021-06-16
Reviewed by Xabier Rodriguez-Calvar.

In GStreamer 1.20 gst_element_get_request_pad() was renamed to gst_element_request_pad_simple(),
so create an alias for older versions.

  • platform/graphics/gstreamer/GStreamerAudioMixer.cpp:

(WebCore::GStreamerAudioMixer::registerProducer):

  • platform/graphics/gstreamer/GStreamerCommon.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r278933 r278935  
     12021-06-16  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] gst_element_get_request_pad deprecated in 1.20
     4        https://bugs.webkit.org/show_bug.cgi?id=226974
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        In GStreamer 1.20 gst_element_get_request_pad() was renamed to gst_element_request_pad_simple(),
     9        so create an alias for older versions.
     10
     11        * platform/graphics/gstreamer/GStreamerAudioMixer.cpp:
     12        (WebCore::GStreamerAudioMixer::registerProducer):
     13        * platform/graphics/gstreamer/GStreamerCommon.h:
     14
    1152021-06-16  Tim Nguyen  <ntim@apple.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerAudioMixer.cpp

    r277947 r278935  
    9696    bool shouldStart = !m_mixer->numsinkpads;
    9797
    98     auto mixerPad = adoptGRef(gst_element_get_request_pad(m_mixer.get(), "sink_%u"));
     98    auto mixerPad = adoptGRef(gst_element_request_pad_simple(m_mixer.get(), "sink_%u"));
    9999    auto srcPad = adoptGRef(gst_element_get_static_pad(audioResample, "src"));
    100100    gst_pad_link(srcPad.get(), mixerPad.get());
  • trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h

    r278655 r278935  
    321321#endif
    322322
     323// In GStreamer 1.20 gst_element_get_request_pad() was renamed to gst_element_request_pad_simple(),
     324// so create an alias for older versions.
     325#if !GST_CHECK_VERSION(1, 19, 0)
     326#define gst_element_request_pad_simple gst_element_get_request_pad
     327#endif
     328
    323329// We can't pass macros as template parameters, so we need to wrap them in inline functions.
    324330inline void gstObjectLock(void* object) { GST_OBJECT_LOCK(object); }
Note: See TracChangeset for help on using the changeset viewer.