[gstreamermm: 147/167] gst_sample_get_buffer wrapped automatically
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm: 147/167] gst_sample_get_buffer wrapped automatically
- Date: Tue, 3 Sep 2013 19:31:26 +0000 (UTC)
commit a3aa65cacbebe69fdbf513ef61ce543a64894a32
Author: Marcin Kolny [loganek] <marcin kolny gmail com>
Date: Wed Aug 7 00:41:04 2013 +0200
gst_sample_get_buffer wrapped automatically
gstreamer/src/sample.ccg | 17 -----------------
gstreamer/src/sample.hg | 4 ++--
2 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/gstreamer/src/sample.ccg b/gstreamer/src/sample.ccg
index 7452c44..8ce3a26 100644
--- a/gstreamer/src/sample.ccg
+++ b/gstreamer/src/sample.ccg
@@ -23,20 +23,3 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <gst/gst.h>
-
-_PINCLUDE(gstreamermm/private/miniobject_p.h)
-
-namespace Gst
-{
-Glib::RefPtr<Gst::Buffer> Sample::get_buffer()
-{
- return Glib::wrap(gst_sample_get_buffer(gobj()), true);
-}
-
-Glib::RefPtr<const Gst::Buffer> Sample::get_buffer() const
-{
- return const_cast<Sample*>(this)->get_buffer();
-}
-
-}
diff --git a/gstreamer/src/sample.hg b/gstreamer/src/sample.hg
index 116cf34..cbabd30 100644
--- a/gstreamer/src/sample.hg
+++ b/gstreamer/src/sample.hg
@@ -49,8 +49,8 @@ class Sample : public MiniObject
Glib::RefPtr<const Gst::Segment> segment, Glib::RefPtr<Gst::Structure> info);
public:
- Glib::RefPtr<const Gst::Buffer> get_buffer() const;
- Glib::RefPtr<Gst::Buffer> get_buffer();
+ _WRAP_METHOD(Glib::RefPtr<Gst::Buffer> get_buffer(), gst_sample_get_buffer)
+ _WRAP_METHOD(Glib::RefPtr<const Gst::Buffer> get_buffer() const, gst_sample_get_buffer, constversion)
_WRAP_METHOD(Glib::RefPtr<Gst::Caps> get_caps(), gst_sample_get_caps)
_WRAP_METHOD(Glib::RefPtr<const Gst::Caps> get_caps() const, gst_sample_get_caps, constversion)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]