File webkit2gtk3-no-mediastream.patch of Package webkit2gtk3

diff -urp webkitgtk-2.51.90.orig/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp webkitgtk-2.51.90/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
--- webkitgtk-2.51.90.orig/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp	2026-01-23 02:35:25.867845800 -0600
+++ webkitgtk-2.51.90/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp	2026-01-25 09:15:27.345612708 -0600
@@ -4740,6 +4740,7 @@ bool MediaPlayerPrivateGStreamer::applyA
 
 void MediaPlayerPrivateGStreamer::audioOutputDeviceChanged()
 {
+#if ENABLE(MEDIA_STREAM)
     RefPtr player = m_player.get();
     if (!player)
         return;
@@ -4771,6 +4772,7 @@ void MediaPlayerPrivateGStreamer::audioO
         GST_WARNING_OBJECT(pipeline(), "Could not obtain GstDevice for identifier '%s'", deviceId.utf8().data());
 
     GST_DEBUG_OBJECT(pipeline(), "%s to audio output device '%s'", changed ? "Changed" : "Could not change", deviceId.utf8().data());
+#endif
 }
 
 String MediaPlayerPrivateGStreamer::codecForStreamId(TrackID streamId)
diff -urp webkitgtk-2.51.90.orig/Source/WebCore/testing/Internals.h webkitgtk-2.51.90/Source/WebCore/testing/Internals.h
--- webkitgtk-2.51.90.orig/Source/WebCore/testing/Internals.h	2026-01-23 02:35:26.125794400 -0600
+++ webkitgtk-2.51.90/Source/WebCore/testing/Internals.h	2026-01-24 20:38:05.805294543 -0600
@@ -206,6 +206,8 @@ class Internals final
     , public RealtimeMediaSourceObserver
     , private RealtimeMediaSource::AudioSampleObserver
     , private RealtimeMediaSource::VideoFrameObserver
+#else
+    , public CanMakeWeakPtr<Internals>
 #endif
     {
     WTF_MAKE_TZONE_ALLOCATED(Internals);
Only in webkitgtk-2.51.90/Source/WebCore/testing: Internals.h.orig
openSUSE Build Service is sponsored by