Changeset 278935 in webkit
- Timestamp:
- Jun 16, 2021, 8:16:40 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278933 r278935 1 2021-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 1 15 2021-06-16 Tim Nguyen <ntim@apple.com> 2 16 -
trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerAudioMixer.cpp
r277947 r278935 96 96 bool shouldStart = !m_mixer->numsinkpads; 97 97 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")); 99 99 auto srcPad = adoptGRef(gst_element_get_static_pad(audioResample, "src")); 100 100 gst_pad_link(srcPad.get(), mixerPad.get()); -
trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerCommon.h
r278655 r278935 321 321 #endif 322 322 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 323 329 // We can't pass macros as template parameters, so we need to wrap them in inline functions. 324 330 inline void gstObjectLock(void* object) { GST_OBJECT_LOCK(object); }
Note:
See TracChangeset
for help on using the changeset viewer.