gnomemm r1372 - in gstreamermm/trunk: . gstreamer gstreamer/src tools/m4



Author: jaalburqu
Date: Wed Feb 27 13:45:58 2008
New Revision: 1372
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1372&view=rev

Log:
2008-02-27  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/gstreamermm.h:
	* gstreamer/src/Makefile_list_of_hg.am_fragment:
	* gstreamer/src/interface.ccg:
	* gstreamer/src/interface.hg: Added interface "Interface"

	* gstreamer/src/registry.hg: Added TODO

	* gstreamer/src/segment.hg:
	* tools/m4/convert_gst.m4: Made some changes to Segment (I think both
	gstsegment.h and gsttasklist.h problems commented below may be fixed
	see Bug reports #518932, #518934 and #518940)

Added:
   gstreamermm/trunk/gstreamer/src/interface.ccg
   gstreamermm/trunk/gstreamer/src/interface.hg
Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/gstreamermm.h
   gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
   gstreamermm/trunk/gstreamer/src/registry.hg
   gstreamermm/trunk/gstreamer/src/segment.hg
   gstreamermm/trunk/tools/m4/convert_gst.m4

Modified: gstreamermm/trunk/gstreamer/gstreamermm.h
==============================================================================
--- gstreamermm/trunk/gstreamer/gstreamermm.h	(original)
+++ gstreamermm/trunk/gstreamer/gstreamermm.h	Wed Feb 27 13:45:58 2008
@@ -16,6 +16,7 @@
 #include <gstreamermm/format.h>
 #include <gstreamermm/index.h>
 #include <gstreamermm/indexfactory.h>
+#include <gstreamermm/interface.h>
 #include <gstreamermm/iterator.h>
 #include <gstreamermm/message.h>
 #include <gstreamermm/object.h>

Modified: gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment
==============================================================================
--- gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	(original)
+++ gstreamermm/trunk/gstreamer/src/Makefile_list_of_hg.am_fragment	Wed Feb 27 13:45:58 2008
@@ -6,10 +6,10 @@
 files_win32_hg =
 files_general_hg = bin.hg buffer.hg bus.hg caps.hg childproxy.hg clock.hg \
 	element.hg elementfactory.hg enums.hg error.hg event.hg filter.hg \
-	format.hg index.hg indexfactory.hg iterator.hg message.hg pad.hg \
-	padtemplate.hg parse.hg pipeline.hg plugin.hg pluginfeature.hg \
-	query.hg registry.hg structure.hg systemclock.hg task.hg \
-	urihandler.hg value.hg xml.hg
+	format.hg index.hg indexfactory.hg interface.hg iterator.hg \
+	message.hg pad.hg padtemplate.hg parse.hg pipeline.hg plugin.hg \
+	pluginfeature.hg query.hg registry.hg structure.hg systemclock.hg \
+	task.hg urihandler.hg value.hg xml.hg
 
 files_general_deprecated_hg =
 

Added: gstreamermm/trunk/gstreamer/src/interface.ccg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/interface.ccg	Wed Feb 27 13:45:58 2008
@@ -0,0 +1,22 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library 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/gstinterface.h>

Added: gstreamermm/trunk/gstreamer/src/interface.hg
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/gstreamer/src/interface.hg	Wed Feb 27 13:45:58 2008
@@ -0,0 +1,43 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library 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/interface.h>
+
+_DEFS(gstreamermm,gst)
+
+namespace Gst
+{
+
+/** Interface â Core interface implemented by Element instances
+ * that allows runtime querying of interface availabillity.
+ * Provides interface functionality on per instance basis and not per class
+ * basis, which is the case for gobject.
+ */
+class Interface : public Glib::Interface
+{
+  _CLASS_INTERFACE(Interface, GstImplementsInterface, GST_IMPLEMENTS_INTERFACE, GstImplementsInterface)
+
+public:
+  _WRAP_METHOD(bool implements(GType iface_type), gst_implements_interface_check)
+};
+
+} // namespace Gst
+

Modified: gstreamermm/trunk/gstreamer/src/registry.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/registry.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/registry.hg	Wed Feb 27 13:45:58 2008
@@ -100,6 +100,8 @@
   _WRAP_METHOD(Glib::ListHandle< Glib::RefPtr<PluginFeature> > get_feature_list(const Glib::ustring& name), gst_registry_get_feature_list_by_plugin)
 
 #m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::ustring >',`$2($3, Glib::OWNERSHIP_DEEP)')
+
+  //TODO: Make sure returned list is valid.  gst_registry_get_path_list actually returns a GList* of gchar*
   _WRAP_METHOD(Glib::ListHandle< Glib::ustring > get_path_list(), gst_registry_get_path_list)
 
 #m4 _CONVERSION(`GList*',`Glib::ListHandle< Glib::RefPtr<Plugin> >',`$2($3, Glib::OWNERSHIP_DEEP)')

Modified: gstreamermm/trunk/gstreamer/src/segment.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/segment.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/segment.hg	Wed Feb 27 13:45:58 2008
@@ -27,7 +27,7 @@
 namespace Gst
 {
 
-/** GstSegment â Structure describing the configured region of interest in a
+/** Segment â Class describing the configured region of interest in a
  * media file.
  * This helper structure holds the relevant values for tracking the region of
  * interest in a media file, called a segment.
@@ -93,7 +93,7 @@
   _WRAP_METHOD(void set_duration(Format format, gint64 duration), gst_segment_set_duration)
   _WRAP_METHOD(void set_last_stop(Format format, gint64 position), gst_segment_set_last_stop)
   _WRAP_METHOD(void set_newsegment(bool update, double rate, Format format, gint64 start, gint64 stop, gint64 time), gst_segment_set_newsegment)
-  _WRAP_METHOD(void set_newsegment_full(bool update, double rate, double applied_rate, Format format, gint64 start, gint64 stop, gint64 time), gst_segment_set_newsegment_full)
+  _WRAP_METHOD(void set_newsegment(bool update, double rate, double applied_rate, Format format, gint64 start, gint64 stop, gint64 time), gst_segment_set_newsegment_full)
   _WRAP_METHOD(void set_seek(double rate, Format format, SeekFlags flags, SeekType start_type, gint64 start, SeekType stop_type, gint64 stop, bool& update), gst_segment_set_seek)
   _WRAP_METHOD(gint64 convert_to_running_time(Format format, gint64 position), gst_segment_to_running_time)
   _WRAP_METHOD(gint64 convert_to_stream_time(Format format, gint64 position), gst_segment_to_stream_time)

Modified: gstreamermm/trunk/tools/m4/convert_gst.m4
==============================================================================
--- gstreamermm/trunk/tools/m4/convert_gst.m4	(original)
+++ gstreamermm/trunk/tools/m4/convert_gst.m4	Wed Feb 27 13:45:58 2008
@@ -103,6 +103,7 @@
 _CONVERSION(`const URIType',`const GstURIType',`(GstURIType($3))')
 _CONVERSION(`Format&',`GstFormat*',`(($2) &($3))')
 _CONVERSION(`gint64&',`gint64*',`&($3)')
+_CONVERSION(`bool&',`gboolean*',`(($2) &($3))')
 _CONVERSION(`const guint&',`guint',`$3')
 _CONVERSION(`const guint32&',`guint32',`$3')
 _CONVERSION(`const std::string&',`const guchar*',`(const guchar*) ($3.c_str())')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]