diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2019-05-31 13:26:32 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2019-06-03 11:14:39 +0200 |
commit | 34bbf192a7753205bb64d14e4eec4ce303317396 (patch) | |
tree | a6a2b15332669c474c6bf83faad5cd1d4b377808 /avmedia | |
parent | 593e8c671361ba5a1229001ce9d1da92f4aae842 (diff) |
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.Behrens@cib.de>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/Library_avmediagst.mk | 1 | ||||
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 8 | ||||
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.hxx | 6 |
3 files changed, 8 insertions, 7 deletions
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; |