[gstreamermm] Gst::Caps: wrap unwrapped methods from gstreamer 1.4
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::Caps: wrap unwrapped methods from gstreamer 1.4
- Date: Thu, 26 Feb 2015 23:26:38 +0000 (UTC)
commit ea6319ee30727da300c8f5789e42d8aa0a6eb77c
Author: Marcin Kolny <marcin kolny gmail com>
Date: Fri Feb 27 00:22:12 2015 +0100
Gst::Caps: wrap unwrapped methods from gstreamer 1.4
* gstreamer/src/bus.hg: minor, add method to ignored.
* gstreamer/src/caps.{ccg|hg}: wrap methods: gst_caps_{fixate|
is_strictly_equal|copy|is_subset_structure|
is_subset_structure_full}. New methods (added in v1.6) will be
wrapped soon.
gstreamer/src/bus.hg | 1 +
gstreamer/src/caps.ccg | 10 ----------
gstreamer/src/caps.hg | 17 ++++++++---------
3 files changed, 9 insertions(+), 19 deletions(-)
---
diff --git a/gstreamer/src/bus.hg b/gstreamer/src/bus.hg
index 750cd87..99e2695 100644
--- a/gstreamer/src/bus.hg
+++ b/gstreamer/src/bus.hg
@@ -144,6 +144,7 @@ public:
* @return true if removal was succesful, false otherwise.
*/
bool remove_watch(guint watch_id);
+ _IGNORE(gst_bus_remove_watch)
/** Sets the synchronous handler on the bus. The slot will be called every
* time a new message is posted on the bus. Note that the function will be
diff --git a/gstreamer/src/caps.ccg b/gstreamer/src/caps.ccg
index 7c65d95..35ea123 100644
--- a/gstreamer/src/caps.ccg
+++ b/gstreamer/src/caps.ccg
@@ -28,16 +28,6 @@ GType Caps::get_type()
return gst_caps_get_type();
}
-Glib::RefPtr<Gst::Caps> Caps::create_any()
-{
- return Glib::wrap(gst_caps_new_any());
-}
-
-Glib::RefPtr<Gst::Caps> Caps::copy() const
-{
- return Glib::wrap(gst_caps_copy(const_cast<GstCaps*>(gobj())));
-}
-
/*
This method is implemented because gst_caps_new_simple is a variable argument
function and cannot be wrapped. In addition, because gst_caps_new_simple
diff --git a/gstreamer/src/caps.hg b/gstreamer/src/caps.hg
index 3a9a367..d28d2e6 100644
--- a/gstreamer/src/caps.hg
+++ b/gstreamer/src/caps.hg
@@ -69,13 +69,6 @@ public:
#endif
public:
- /** Creates a new Gst::Caps that indicates that it is compatible with any
- * media format.
- *
- * @return The new Gst::Caps.
- */
- static Glib::RefPtr<Gst::Caps> create_any();
-
/** Creates a new Gst::Caps that contains one Gst::Structure.
*
* @param media_type The media type of the structure.
@@ -93,8 +86,6 @@ public:
_WRAP_METHOD(static Glib::RefPtr<Gst::Caps> create_from_string(const Glib::ustring& string),
gst_caps_from_string)
- Glib::RefPtr<Gst::Caps> copy() const;
-
_WRAP_METHOD(Glib::RefPtr<Gst::Caps> copy_nth(guint nth) const, gst_caps_copy_nth)
/** Appends the structures contained in @a caps to this object. The structures in
@@ -216,6 +207,14 @@ public:
_WRAP_METHOD(bool is_always_compatible(const Glib::RefPtr<const Gst::Caps>& other_caps) const,
gst_caps_is_always_compatible)
_WRAP_METHOD(bool is_subset(const Glib::RefPtr<const Gst::Caps>& superset_caps) const, gst_caps_is_subset)
_WRAP_METHOD(bool can_intersect(const Glib::RefPtr<const Gst::Caps>& caps2) const, gst_caps_can_intersect)
+ _WRAP_METHOD(Glib::RefPtr<Gst::Caps> fixate() const, gst_caps_fixate)
+ _WRAP_METHOD(bool is_strictly_equal(const Glib::RefPtr<const Gst::Caps>& caps2) const,
gst_caps_is_strictly_equal)
+ _WRAP_METHOD(Glib::RefPtr<Gst::Caps> copy() const, gst_caps_copy)
+ _WRAP_METHOD(bool is_subset_structure(const Gst::Structure& structure) const, gst_caps_is_subset_structure)
+ _WRAP_METHOD(bool is_subset_structure(const Gst::Structure& structure, const Gst::CapsFeatures& features)
const, gst_caps_is_subset_structure_full)
+
+
+ _WRAP_METHOD(static Glib::RefPtr<Gst::Caps> create_any(), gst_caps_create_any)
//This is const (returns a non const) because it always creates a new instance:
_WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_intersect(const Glib::RefPtr<const Gst::Caps>& other_caps) const,
gst_caps_intersect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]