|
|
e4c4141 |
From 03bd2fd7b97f8f8164039203027f89e82c1c4212 Mon Sep 17 00:00:00 2001
|
|
|
e4c4141 |
From: David Tardon <dtardon@redhat.com>
|
|
|
e4c4141 |
Date: Fri, 10 Aug 2012 08:11:46 +0200
|
|
|
e4c4141 |
Subject: [PATCH 3/7] make avmedia build with gstreamer-0.10
|
|
|
e4c4141 |
|
|
|
e4c4141 |
Change-Id: I6124904cecdb8ea66477f40b6771a103a8058c10
|
|
|
e4c4141 |
Signed-off-by: David Tardon <dtardon@redhat.com>
|
|
|
e4c4141 |
---
|
|
|
e4c4141 |
avmedia/Library_avmediagst_0_10.mk | 65 +++++++++++++++++++++++++++++++++
|
|
|
e4c4141 |
avmedia/source/gstreamer/gstmanager.cxx | 2 +
|
|
|
e4c4141 |
avmedia/source/gstreamer/gstplayer.cxx | 8 ++--
|
|
|
e4c4141 |
configure.in | 2 +-
|
|
|
e4c4141 |
4 files changed, 73 insertions(+), 4 deletions(-)
|
|
|
e4c4141 |
create mode 100644 avmedia/Library_avmediagst_0_10.mk
|
|
|
e4c4141 |
|
|
|
e4c4141 |
diff --git a/avmedia/Library_avmediagst_0_10.mk b/avmedia/Library_avmediagst_0_10.mk
|
|
|
e4c4141 |
new file mode 100644
|
|
|
e4c4141 |
index 0000000..9347c2b
|
|
|
e4c4141 |
--- /dev/null
|
|
|
e4c4141 |
+++ b/avmedia/Library_avmediagst_0_10.mk
|
|
|
e4c4141 |
@@ -0,0 +1,65 @@
|
|
|
e4c4141 |
+# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
e4c4141 |
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# The contents of this file are subject to the Mozilla Public License Version
|
|
|
e4c4141 |
+# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
e4c4141 |
+# the License or as specified alternatively below. You may obtain a copy of
|
|
|
e4c4141 |
+# the License at http://www.mozilla.org/MPL/
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
e4c4141 |
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
e4c4141 |
+# for the specific language governing rights and limitations under the
|
|
|
e4c4141 |
+# License.
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# The Initial Developer of the Original Code is
|
|
|
e4c4141 |
+# Matúš Kukan <matus.kukan@gmail.com>
|
|
|
e4c4141 |
+# Portions created by the Initial Developer are Copyright (C) 2011 the
|
|
|
e4c4141 |
+# Initial Developer. All Rights Reserved.
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# Major Contributor(s):
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# For minor contributions see the git repository.
|
|
|
e4c4141 |
+#
|
|
|
e4c4141 |
+# Alternatively, the contents of this file may be used under the terms of
|
|
|
e4c4141 |
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
|
|
e4c4141 |
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
|
|
e4c4141 |
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
|
|
e4c4141 |
+# instead of those above.
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_Library,avmediagst_0_10))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_set_componentfile,avmediagst_0_10,avmedia/source/gstreamer/avmediagstreamer_0_10))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_set_include,avmediagst_0_10,\
|
|
|
e4c4141 |
+ $$(INCLUDE) \
|
|
|
e4c4141 |
+ -I$(SRCDIR)/avmedia/source/inc \
|
|
|
e4c4141 |
+ $(GSTREAMER_0_10_CFLAGS) \
|
|
|
e4c4141 |
+))
|
|
|
e4c4141 |
+$(eval $(call gb_Library_add_libs,avmediagst_0_10,$(GSTREAMER_0_10_LIBS)))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_use_api,avmediagst_0_10,\
|
|
|
e4c4141 |
+ offapi \
|
|
|
e4c4141 |
+ udkapi \
|
|
|
e4c4141 |
+))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+ifeq ($(GUI),WNT)
|
|
|
e4c4141 |
+$(eval $(call gb_Library_add_defs,avmediagst_0_10,\
|
|
|
e4c4141 |
+ -DWINNT
|
|
|
e4c4141 |
+))
|
|
|
e4c4141 |
+endif
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_use_libraries,avmediagst_0_10,\
|
|
|
e4c4141 |
+ comphelper \
|
|
|
e4c4141 |
+ cppu \
|
|
|
e4c4141 |
+ cppuhelper \
|
|
|
e4c4141 |
+ sal \
|
|
|
e4c4141 |
+ tl \
|
|
|
e4c4141 |
+ vcl \
|
|
|
e4c4141 |
+ $(gb_STDLIBS) \
|
|
|
e4c4141 |
+))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+$(eval $(call gb_Library_add_exception_objects,avmediagst_0_10,\
|
|
|
e4c4141 |
+ avmedia/source/gstreamer/gst_0_10 \
|
|
|
e4c4141 |
+))
|
|
|
e4c4141 |
+
|
|
|
e4c4141 |
+# vim: set noet sw=4 ts=4:
|
|
|
e4c4141 |
diff --git a/avmedia/source/gstreamer/gstmanager.cxx b/avmedia/source/gstreamer/gstmanager.cxx
|
|
|
e4c4141 |
index 6b3ffff..f04e5cc 100644
|
|
|
e4c4141 |
--- a/avmedia/source/gstreamer/gstmanager.cxx
|
|
|
e4c4141 |
+++ b/avmedia/source/gstreamer/gstmanager.cxx
|
|
|
e4c4141 |
@@ -34,11 +34,13 @@
|
|
|
e4c4141 |
#define AVMEDIA_GST_MANAGER_IMPLEMENTATIONNAME "com.sun.star.comp.avmedia.Manager_GStreamer"
|
|
|
e4c4141 |
#define AVMEDIA_GST_MANAGER_SERVICENAME "com.sun.star.media.Manager"
|
|
|
e4c4141 |
|
|
|
e4c4141 |
+#if !defined DBG
|
|
|
e4c4141 |
#if OSL_DEBUG_LEVEL > 2
|
|
|
e4c4141 |
#define DBG OSL_TRACE
|
|
|
e4c4141 |
#else
|
|
|
e4c4141 |
#define DBG(...)
|
|
|
e4c4141 |
#endif
|
|
|
e4c4141 |
+#endif
|
|
|
e4c4141 |
|
|
|
e4c4141 |
using namespace ::com::sun::star;
|
|
|
e4c4141 |
|
|
|
e4c4141 |
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
|
|
|
e4c4141 |
index 28e5d34..3654410 100644
|
|
|
e4c4141 |
--- a/avmedia/source/gstreamer/gstplayer.cxx
|
|
|
e4c4141 |
+++ b/avmedia/source/gstreamer/gstplayer.cxx
|
|
|
e4c4141 |
@@ -50,11 +50,13 @@
|
|
|
e4c4141 |
# define AVVERSION "gst 1.0: "
|
|
|
e4c4141 |
#endif
|
|
|
e4c4141 |
|
|
|
e4c4141 |
-#if 1 //OSL_DEBUG_LEVEL > 2
|
|
|
e4c4141 |
+#if !defined DBG
|
|
|
e4c4141 |
+#if OSL_DEBUG_LEVEL > 2
|
|
|
e4c4141 |
#define DBG(...) do { fprintf (stderr, "%s", AVVERSION); fprintf (stderr, __VA_ARGS__); fprintf (stderr, "\n"); } while (0);
|
|
|
e4c4141 |
#else
|
|
|
e4c4141 |
#define DBG(...)
|
|
|
e4c4141 |
#endif
|
|
|
e4c4141 |
+#endif
|
|
|
e4c4141 |
|
|
|
e4c4141 |
using namespace ::com::sun::star;
|
|
|
e4c4141 |
|
|
|
e4c4141 |
@@ -192,7 +194,7 @@ GstBusSyncReply Player::processSyncMessage( GstMessage *message )
|
|
|
e4c4141 |
{
|
|
|
e4c4141 |
// DBG( "%p processSyncMessage has handle: %s", this, GST_MESSAGE_TYPE_NAME( message ) );
|
|
|
e4c4141 |
|
|
|
e4c4141 |
-#if 1 // OSL_DEBUG_LEVEL > 0
|
|
|
e4c4141 |
+#if OSL_DEBUG_LEVEL > 0
|
|
|
e4c4141 |
if ( GST_MESSAGE_TYPE( message ) == GST_MESSAGE_ERROR )
|
|
|
e4c4141 |
{
|
|
|
e4c4141 |
GError* error;
|
|
|
e4c4141 |
@@ -575,7 +577,7 @@ awt::Size SAL_CALL Player::getPreferredPlayerWindowSize()
|
|
|
e4c4141 |
DBG( "%p Player::getPreferredPlayerWindowSize, member %d x %d", this, mnWidth, mnHeight );
|
|
|
e4c4141 |
|
|
|
e4c4141 |
TimeValue aTimeout = { 10, 0 };
|
|
|
e4c4141 |
-#if 1 // OSL_DEBUG_LEVEL > 2
|
|
|
e4c4141 |
+#if OSL_DEBUG_LEVEL > 2
|
|
|
e4c4141 |
osl::Condition::Result aResult =
|
|
|
e4c4141 |
#endif
|
|
|
e4c4141 |
maSizeCondition.wait( &aTimeout );
|
|
|
e4c4141 |
diff --git a/configure.in b/configure.in
|
|
|
e4c4141 |
index 46b9892..0b60c3f 100644
|
|
|
e4c4141 |
--- a/configure.in
|
|
|
e4c4141 |
+++ b/configure.in
|
|
|
e4c4141 |
@@ -8971,7 +8971,7 @@ if test "$build_gstreamer_0_10" = "yes"; then
|
|
|
e4c4141 |
if test "x$enable_gstreamer_0_10" != "xno"; then
|
|
|
e4c4141 |
ENABLE_GSTREAMER_0_10="TRUE"
|
|
|
e4c4141 |
AC_MSG_RESULT([yes])
|
|
|
e4c4141 |
- PKG_CHECK_MODULES( GSTREAMER_0_10, gstreamer-0.10 gstreamer-plugins-base-0.10 )
|
|
|
e4c4141 |
+ PKG_CHECK_MODULES( GSTREAMER_0_10, gstreamer-0.10 gstreamer-plugins-base-0.10 gstreamer-interfaces-0.10 )
|
|
|
e4c4141 |
else
|
|
|
e4c4141 |
AC_MSG_RESULT([no])
|
|
|
e4c4141 |
fi
|
|
|
e4c4141 |
--
|
|
|
e4c4141 |
1.7.11.4
|
|
|
e4c4141 |
|