gnomemm r1740 - in gstreamermm/trunk: . gstreamer/src tests
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1740 - in gstreamermm/trunk: . gstreamer/src tests
- Date: Mon, 13 Oct 2008 03:01:22 +0000 (UTC)
Author: jaalburqu
Date: Mon Oct 13 03:01:21 2008
New Revision: 1740
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1740&view=rev
Log:
2008-10-12 Josà Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/bin.ccg:
* gstreamer/src/bin.hg:
* gstreamer/src/pipeline.ccg:
* gstreamer/src/pipeline.hg: Added create() methods for Gst::Bin and
Gst::Pipeline that don't require a name param.
* tests/test-create-bin.cc: Modified test to use new create() methods.
* gstreamer/src/indexfactory.hg: Renamed make() methods to
create_index().
* gstreamer/src/xml.hg: Added create() docs.
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/gstreamer/src/bin.ccg
gstreamermm/trunk/gstreamer/src/bin.hg
gstreamermm/trunk/gstreamer/src/indexfactory.hg
gstreamermm/trunk/gstreamer/src/pipeline.ccg
gstreamermm/trunk/gstreamer/src/pipeline.hg
gstreamermm/trunk/gstreamer/src/xml.hg
gstreamermm/trunk/tests/test-create-bin.cc
Modified: gstreamermm/trunk/gstreamer/src/bin.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/bin.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/bin.ccg Mon Oct 13 03:01:21 2008
@@ -31,6 +31,11 @@
namespace Gst
{
+Bin::Bin()
+: _CONSTRUCT("name", NULL)
+{}
+
+
Glib::RefPtr<Bin> Bin::add(const Glib::RefPtr<Element>& element)
{
const bool result = gst_bin_add(gobj(), element->gobj());
Modified: gstreamermm/trunk/gstreamer/src/bin.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/bin.hg (original)
+++ gstreamermm/trunk/gstreamer/src/bin.hg Mon Oct 13 03:01:21 2008
@@ -133,6 +133,7 @@
protected:
_WRAP_CTOR(Bin(const Glib::ustring& name), gst_bin_new)
+ Bin();
public:
/** Creates a new bin with the given name.
@@ -142,6 +143,12 @@
*/
_WRAP_CREATE(const Glib::ustring& name)
+ /** Creates a new bin with a unique generic name.
+ *
+ * @return A new Gst::Bin.
+ */
+ _WRAP_CREATE()
+
/** Adds the given element to the bin.
* This sets the element's parent, and thus takes ownership of the element.
* An element can only be added to one bin.
Modified: gstreamermm/trunk/gstreamer/src/indexfactory.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/indexfactory.hg (original)
+++ gstreamermm/trunk/gstreamer/src/indexfactory.hg Mon Oct 13 03:01:21 2008
@@ -41,12 +41,19 @@
_WRAP_CTOR(IndexFactory(const Glib::ustring& name, const Glib::ustring& longdesc, GType type), gst_index_factory_new)
public:
+ /** Create a new index factory with the given parameters
+ *
+ * @param name Name of the index factory to create.
+ * @param longdesc Long description of the index factory to create.
+ * @param type The GType of the Gst::Index element of this factory.
+ * @return A new Gst::IndexFactory.
+ */
_WRAP_CREATE(const Glib::ustring& name, const Glib::ustring& longdesc, GType type)
_WRAP_METHOD(static Glib::RefPtr<IndexFactory> find(const Glib::ustring& name), gst_index_factory_find)
- _WRAP_METHOD(Glib::RefPtr<Index> make(), gst_index_factory_create)
+ _WRAP_METHOD(Glib::RefPtr<Index> create_index(), gst_index_factory_create)
- _WRAP_METHOD(static Glib::RefPtr<Index> make(const Glib::ustring& factory_name), gst_index_factory_make)
+ _WRAP_METHOD(static Glib::RefPtr<Index> create_index(const Glib::ustring& factory_name), gst_index_factory_make)
//Destruction occurs in destructor.
_IGNORE(gst_index_factory_destroy)
Modified: gstreamermm/trunk/gstreamer/src/pipeline.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/pipeline.ccg (original)
+++ gstreamermm/trunk/gstreamer/src/pipeline.ccg Mon Oct 13 03:01:21 2008
@@ -24,3 +24,12 @@
_PINCLUDE(glibmm/private/object_p.h)
_PINCLUDE(gstreamermm/private/bin_p.h)
+
+namespace Gst
+{
+
+Pipeline::Pipeline()
+: _CONSTRUCT("name", NULL)
+{}
+
+} // namespace Gst
Modified: gstreamermm/trunk/gstreamer/src/pipeline.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/pipeline.hg (original)
+++ gstreamermm/trunk/gstreamer/src/pipeline.hg Mon Oct 13 03:01:21 2008
@@ -85,6 +85,7 @@
protected:
_WRAP_CTOR(Pipeline(const Glib::ustring& name), gst_pipeline_new)
+ Pipeline();
public:
/** Create a new pipeline with the given name.
@@ -94,6 +95,11 @@
*/
_WRAP_CREATE(const Glib::ustring& name)
+ /** Create a new pipeline with a unique generic name.
+ * @return Newly created Gst::Pipeline. MT safe.
+ */
+ _WRAP_CREATE()
+
_WRAP_METHOD(Glib::RefPtr<Bus> get_bus(), gst_pipeline_get_bus)
_WRAP_METHOD(Glib::RefPtr<const Bus> get_bus() const, gst_pipeline_get_bus, constversion)
_WRAP_METHOD(bool set_clock(const Glib::RefPtr<Clock>& clock), gst_pipeline_set_clock)
Modified: gstreamermm/trunk/gstreamer/src/xml.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/xml.hg (original)
+++ gstreamermm/trunk/gstreamer/src/xml.hg Mon Oct 13 03:01:21 2008
@@ -47,6 +47,9 @@
_CTOR_DEFAULT
public:
+ /** Create a new Gst::XML parser object.
+ * @return A Glib::RefPtr<> to a new Gst::XML object.
+ */
_WRAP_CREATE()
/** Converts the given element into an XML presentation.
Modified: gstreamermm/trunk/tests/test-create-bin.cc
==============================================================================
--- gstreamermm/trunk/tests/test-create-bin.cc (original)
+++ gstreamermm/trunk/tests/test-create-bin.cc Mon Oct 13 03:01:21 2008
@@ -30,8 +30,8 @@
Glib::RefPtr<Gst::Bin> bin;
Glib::RefPtr<Gst::Element> source, sink;
- pipeline = Gst::Pipeline::create("my-pipeline");
- bin = Gst::Bin::create("my-bin");
+ pipeline = Gst::Pipeline::create();
+ bin = Gst::Bin::create();
source = Gst::ElementFactory::create_element("fakesrc", "source");
sink = Gst::ElementFactory::create_element("fakesink", "sink");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]