avmedia/Library_avmediagst.mk          |    1 -
 avmedia/source/gstreamer/gstplayer.cxx |    8 ++++----
 avmedia/source/gstreamer/gstplayer.hxx |    6 ++++--
 3 files changed, 8 insertions(+), 7 deletions(-)

New commits:
commit 34bbf192a7753205bb64d14e4eec4ce303317396
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Fri May 31 13:26:32 2019 +0200
Commit:     Katarina Behrens <katarina.behr...@cib.de>
CommitDate: Mon Jun 3 11:14:39 2019 +0200

    Drop extra define ENABLE_GTKSINK
    
    Directly use 'ENABLE_GTK3' instead, s.a. discussion at
    https://gerrit.libreoffice.org/#/c/72968/ .
    
    Change-Id: I9713cd942e3f7308974eebc432dce0d2bc5adadc
    Reviewed-on: https://gerrit.libreoffice.org/73270
    Tested-by: Jenkins
    Reviewed-by: Katarina Behrens <katarina.behr...@cib.de>

diff --git a/avmedia/Library_avmediagst.mk b/avmedia/Library_avmediagst.mk
index 9b9622b7edc5..cd651c82e60b 100644
--- a/avmedia/Library_avmediagst.mk
+++ b/avmedia/Library_avmediagst.mk
@@ -24,7 +24,6 @@ $(eval $(call gb_Library_add_libs,avmediagst,\
 ifneq ($(ENABLE_GTK3),)
 $(eval $(call gb_Library_add_cxxflags,avmediagst,\
     $$(GTK3_CFLAGS) \
-    -DENABLE_GTKSINK \
 ))
 
 $(eval $(call gb_Library_add_libs,avmediagst,\
diff --git a/avmedia/source/gstreamer/gstplayer.cxx 
b/avmedia/source/gstreamer/gstplayer.cxx
index b2e5382353f9..e12259ad0bec 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -292,7 +292,7 @@ Player::Player() :
     GstPlayer_BASE( m_aMutex ),
     mpPlaybin( nullptr ),
     mpVolumeControl( nullptr ),
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
     mpGtkWidget( nullptr ),
 #endif
     mbUseGtkSink( false ),
@@ -352,7 +352,7 @@ void SAL_CALL Player::disposing()
     // Release the elements and pipeline
     if( mbInitialized )
     {
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
         if (mpGtkWidget)
         {
             gtk_widget_destroy(mpGtkWidget);
@@ -642,7 +642,7 @@ GstBusSyncReply Player::processSyncMessage( GstMessage 
*message )
 
 void Player::preparePlaybin( const OUString& rURL, GstElement *pSink )
 {
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
     if (mpGtkWidget)
     {
         gtk_widget_destroy(mpGtkWidget);
@@ -981,7 +981,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL 
Player::createPlayerWindow( co
                 }
 
                 GstElement *pVideosink = nullptr;
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
                 pVideosink = (aToolkit == "gtk3") ?
                               gst_element_factory_make("gtksink", "gtksink") : 
nullptr;
                 if (pVideosink)
diff --git a/avmedia/source/gstreamer/gstplayer.hxx 
b/avmedia/source/gstreamer/gstplayer.hxx
index c57f60a7802f..9bc0e3eb4cb5 100644
--- a/avmedia/source/gstreamer/gstplayer.hxx
+++ b/avmedia/source/gstreamer/gstplayer.hxx
@@ -20,6 +20,8 @@
 #ifndef INCLUDED_AVMEDIA_SOURCE_GSTREAMER_GSTPLAYER_HXX
 #define INCLUDED_AVMEDIA_SOURCE_GSTREAMER_GSTPLAYER_HXX
 
+#include <config_vclplug.h>
+
 #include <osl/conditn.hxx>
 #include "gstcommon.hxx"
 
@@ -27,7 +29,7 @@
 #include <cppuhelper/compbase.hxx>
 #include <cppuhelper/basemutex.hxx>
 
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
 #    include <gtk/gtk.h>
 #endif
 
@@ -83,7 +85,7 @@ private:
     // Add elements and pipeline here
     GstElement*             mpPlaybin;  // the playbin is also a pipeline
     GstElement*             mpVolumeControl;  // the playbin is also a pipeline
-#if defined(ENABLE_GTKSINK)
+#if ENABLE_GTK3
     GtkWidget*              mpGtkWidget;
 #endif
     bool                    mbUseGtkSink;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to