[gstreamermm] Add Gst::Discoverer skeleton.
- From: Josà Alburquerque <jaalburqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Add Gst::Discoverer skeleton.
- Date: Wed, 13 Jul 2011 04:06:58 +0000 (UTC)
commit 033897ee872028752ac616a5f97069f741b3b5b9
Author: Josà Alburquerque <jaalburqu svn gnome org>
Date: Tue Jul 12 23:57:52 2011 -0400
Add Gst::Discoverer skeleton.
* gstreamer/src/discoverer.{ccg,hg}: Add the source files including
the Gst::Discoverer class definition though nothing is wrapped yet.
* gstreamer/src/filelist.am: Mention the new source files in the
build.
* examples/Makefile.am (LDDADD): Add a -lgstpbutils-0.10 because it
is needed when linking because it is not included in the
gstreamer-plugins-base-0.10.pc file and has to be included so that the
linker can find the GstDiscoverer related API.
* gstreamer/gstreamermm.pc.in (Libs): Do the same so that users don't
have to include the -lgstpbutils-0.10 themselves.
ChangeLog | 16 +++++++++++++
examples/Makefile.am | 2 +-
gstreamer/gstreamermm.pc.in | 2 +-
gstreamer/src/discoverer.ccg | 27 +++++++++++++++++++++
gstreamer/src/discoverer.hg | 52 ++++++++++++++++++++++++++++++++++++++++++
gstreamer/src/filelist.am | 1 +
6 files changed, 98 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d2042dc..995b851 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
2011-07-12 Josà Alburquerque <jaalburqu svn gnome org>
+ Add Gst::Discoverer skeleton.
+
+ * gstreamer/src/discoverer.{ccg,hg}: Add the source files including
+ the Gst::Discoverer class definition though nothing is wrapped yet.
+ * gstreamer/src/filelist.am: Mention the new source files in the
+ build.
+
+ * examples/Makefile.am (LDDADD): Add a -lgstpbutils-0.10 because it
+ is needed when linking because it is not included in the
+ gstreamer-plugins-base-0.10.pc file and has to be included so that the
+ linker can find the GstDiscoverer related API.
+ * gstreamer/gstreamermm.pc.in (Libs): Do the same so that users don't
+ have to include the -lgstpbutils-0.10 themselves.
+
+2011-07-12 Josà Alburquerque <jaalburqu svn gnome org>
+
Element: Add request_pad() method overloads.
* gstreamer/src/element.hg (request_pad): Use the new gmmproc syntax
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 70daff6..45e841c 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -35,7 +35,7 @@ local_libgstreamermm = $(top_builddir)/gstreamer/gstreamermm/libgstreamermm-$(GS
AM_CPPFLAGS = -I$(top_builddir) $(gstreamermm_includes) $(examples_cppflags)
AM_CXXFLAGS = $(GSTREAMERMM_WXXFLAGS)
-LDADD = $(GSTREAMERMM_LIBS) $(local_libgstreamermm)
+LDADD = $(GSTREAMERMM_LIBS) $(local_libgstreamermm) -lgstpbutils-0.10
element_link_example_SOURCES = element_link/element_link.cc
media_player_gtkmm_example_SOURCES = media_player_gtkmm/main.cc \
diff --git a/gstreamer/gstreamermm.pc.in b/gstreamer/gstreamermm.pc.in
index 0549098..9574410 100644
--- a/gstreamer/gstreamermm.pc.in
+++ b/gstreamer/gstreamermm.pc.in
@@ -15,5 +15,5 @@ Description: C++ binding for gstreamer
Version: @GSTREAMERMM_VERSION@
URL: http://www.gtkmm.org/
Requires: @GSTREAMERMM_MODULES@
-Libs: -L${libdir} -lgstreamermm- GSTREAMERMM_API_VERSION@
+Libs: -L${libdir} -lgstreamermm- GSTREAMERMM_API_VERSION@ -lgstpbutils-0.10
Cflags: -I${includedir}/@GSTREAMERMM_MODULE_NAME@ -I${libdir}/@GSTREAMERMM_MODULE_NAME@/include
diff --git a/gstreamer/src/discoverer.ccg b/gstreamer/src/discoverer.ccg
new file mode 100644
index 0000000..ecb8478
--- /dev/null
+++ b/gstreamer/src/discoverer.ccg
@@ -0,0 +1,27 @@
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2011 gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gst/pbutils/pbutils.h>
+
+_PINCLUDE(glibmm/private/object_p.h)
+
+namespace Gst
+{
+
+} // namespace Gst
diff --git a/gstreamer/src/discoverer.hg b/gstreamer/src/discoverer.hg
new file mode 100644
index 0000000..8d8463a
--- /dev/null
+++ b/gstreamer/src/discoverer.hg
@@ -0,0 +1,52 @@
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2011 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <glibmm/object.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+
+/** Discoverer - Utility for discovering information on URIs.
+ * The Discoverer is a utility object which allows to get as much information
+ * as possible from one or many URIs.
+ *
+ * It provides two APIs, allowing usage in blocking or non-blocking mode.
+ *
+ * The blocking mode just requires calling discover_uri() with the URI one
+ * wishes to discover.
+ *
+ * The non-blocking mode requires a running Glib::MainLoop in the default
+ * Glib::MainContext, where one connects to the various signals, appends the
+ * URIs to be processed (through discover_uri_async()) and then asks for the
+ * discovery to begin (through start()).
+ *
+ * All the information is returned in a DiscovererInfo structure.
+ */
+class Discoverer : public Glib::Object
+{
+ _CLASS_GOBJECT(Discoverer, GstDiscoverer, GST_DISCOVERER, Glib::Object, GObject)
+
+protected:
+
+public:
+};
+
+} //namespace Gst
diff --git a/gstreamer/src/filelist.am b/gstreamer/src/filelist.am
index d7db47a..d4133e9 100644
--- a/gstreamer/src/filelist.am
+++ b/gstreamer/src/filelist.am
@@ -112,6 +112,7 @@ files_hg = \
clock.hg \
colorbalancechannel.hg \
colorbalance.hg \
+ discoverer.hg \
elementfactory.hg \
element.hg \
enums.hg \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]