Fix build with gstreamer 1.12
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Mar 2020 09:15:53 +0000 (09:15 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Mar 2020 09:15:53 +0000 (09:15 +0000)
https://bugs.webkit.org/show_bug.cgi?id=209296

Patch by Mike Gorse <mgorse@suse.com> on 2020-03-20
Reviewed by Philippe Normand.

No new tests (build fix only).

* platform/graphics/gstreamer/GLVideoSinkGStreamer.cpp:
(webKitGLVideoSinkChangeState): Add GST_VERSION_CHECK around check for
GST_STATE_CHANGE_READY_TO_READY.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@258755 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/gstreamer/GLVideoSinkGStreamer.cpp

index f893272..c8e0649 100644 (file)
@@ -1,3 +1,16 @@
+2020-03-20  Mike Gorse  <mgorse@suse.com>
+
+        Fix build with gstreamer 1.12
+        https://bugs.webkit.org/show_bug.cgi?id=209296
+
+        Reviewed by Philippe Normand.
+
+        No new tests (build fix only).
+
+        * platform/graphics/gstreamer/GLVideoSinkGStreamer.cpp:
+        (webKitGLVideoSinkChangeState): Add GST_VERSION_CHECK around check for
+        GST_STATE_CHANGE_READY_TO_READY.
+
 2020-03-20  Philippe Normand  <pnormand@igalia.com>
 
         [Unix] Allow runtime release logging levels configuration
index 6c1a9a6..141fe42 100644 (file)
@@ -155,7 +155,9 @@ static GstStateChangeReturn webKitGLVideoSinkChangeState(GstElement* element, Gs
 
     switch (transition) {
     case GST_STATE_CHANGE_NULL_TO_READY:
+#if GST_CHECK_VERSION(1, 14, 0)
     case GST_STATE_CHANGE_READY_TO_READY:
+#endif
     case GST_STATE_CHANGE_READY_TO_PAUSED: {
         if (!priv->glDisplayElementContext)
             priv->glDisplayElementContext = requestGLContext(GST_GL_DISPLAY_CONTEXT_TYPE);