1*4882a593SmuzhiyunFrom 53d5bbf4d597a2fcb26149fab3185a3db09529af Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: Philippe Normand <pnormand@igalia.com> 3*4882a593SmuzhiyunDate: Fri, 23 Jul 2021 15:38:29 +0000 4*4882a593SmuzhiyunSubject: [PATCH] Warnings due to AppSinkCallbacks struct growth 5*4882a593Smuzhiyun https://bugs.webkit.org/show_bug.cgi?id=228229 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunPatch by Philippe Normand <pnormand@igalia.com> on 2021-07-23 8*4882a593SmuzhiyunReviewed by Xabier Rodriguez-Calvar. 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunA new callback was added, for event notifications. 11*4882a593Smuzhiyun 12*4882a593SmuzhiyunCanonical link: https://commits.webkit.org/239911@main 13*4882a593Smuzhiyungit-svn-id: https://svn.webkit.org/repository/webkit/trunk@280243268f45cc-cd09-0410-ab3c-d52691b4dbfc 14*4882a593Smuzhiyun[Thomas: backported from upstream, only the part touching 15*4882a593SmuzhiyunSource/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp 16*4882a593Smuzhiyunas other parts are not relevant] 17*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> 18*4882a593Smuzhiyun--- 19*4882a593Smuzhiyun .../platform/audio/gstreamer/AudioFileReaderGStreamer.cpp | 4 ++++ 20*4882a593Smuzhiyun 1 file changed, 4 insertions(+) 21*4882a593Smuzhiyun 22*4882a593Smuzhiyundiff --git a/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp 23*4882a593Smuzhiyunindex 2f24c0cf5..dd9d91cf3 100644 24*4882a593Smuzhiyun--- a/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp 25*4882a593Smuzhiyun+++ b/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp 26*4882a593Smuzhiyun@@ -230,6 +230,10 @@ void AudioFileReader::handleNewDeinterleavePad(GstPad* pad) 27*4882a593Smuzhiyun [](GstAppSink* sink, gpointer userData) -> GstFlowReturn { 28*4882a593Smuzhiyun return static_cast<AudioFileReader*>(userData)->handleSample(sink); 29*4882a593Smuzhiyun }, 30*4882a593Smuzhiyun+#if GST_CHECK_VERSION(1, 19, 1) 31*4882a593Smuzhiyun+ // new_event 32*4882a593Smuzhiyun+ nullptr, 33*4882a593Smuzhiyun+#endif 34*4882a593Smuzhiyun { nullptr } 35*4882a593Smuzhiyun }; 36*4882a593Smuzhiyun gst_app_sink_set_callbacks(GST_APP_SINK(sink), &callbacks, this, 0); 37*4882a593Smuzhiyun-- 38*4882a593Smuzhiyun2.37.1 39*4882a593Smuzhiyun 40