[gstreamermm] Gst::AudioFormatInfo: use value instead of pointer to underlying data
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Gst::AudioFormatInfo: use value instead of pointer to underlying data
- Date: Sat, 23 Apr 2016 18:26:49 +0000 (UTC)
commit cdb85647a584091805df4008d2118ab253f86ccf
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Apr 23 16:54:20 2016 +0200
Gst::AudioFormatInfo: use value instead of pointer to underlying data
* gstreamer/src/audioformat.{ccg|hg}: use value instaed of pointer for
Gst::AudioFormatInfo class, wrap more properties.
gstreamer/src/audioformat.ccg | 12 +-----------
gstreamer/src/audioformat.hg | 37 +++++++++++++++++++++----------------
2 files changed, 22 insertions(+), 27 deletions(-)
---
diff --git a/gstreamer/src/audioformat.ccg b/gstreamer/src/audioformat.ccg
index b2e8ec0..87c80c0 100644
--- a/gstreamer/src/audioformat.ccg
+++ b/gstreamer/src/audioformat.ccg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008-2009 The gstreamermm Development Team
+ * Copyright 2008-2016 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
@@ -17,13 +17,3 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include <gstreamermm/handle_error.h>
-
-namespace Gst
-{
-
-AudioFormatInfo::~AudioFormatInfo()
-{
-}
-
-}
diff --git a/gstreamer/src/audioformat.hg b/gstreamer/src/audioformat.hg
index 7dadd0d..12dc31e 100644
--- a/gstreamer/src/audioformat.hg
+++ b/gstreamer/src/audioformat.hg
@@ -1,6 +1,6 @@
/* gstreamermm - a C++ wrapper for gstreamer
*
- * Copyright 2008-2009 The gstreamermm Development Team
+ * Copyright 2008-2016 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
@@ -24,47 +24,52 @@ _DEFS(gstreamermm,gst)
namespace Gst
{
- _WRAP_ENUM(AudioFormat, GstAudioFormat)
- _WRAP_ENUM(AudioFormatFlags, GstAudioFormatFlags)
+_WRAP_ENUM(AudioFormat, GstAudioFormat)
+_WRAP_ENUM(AudioFormatFlags, GstAudioFormatFlags)
+_WRAP_ENUM(AudioPackFlags, GstAudioPackFlags)
/**
* Information for an audio format.
+ *
+ * Last reviewed on 2016-04-23 (1.8.0).
*/
class AudioFormatInfo
{
_CLASS_GENERIC(AudioFormatInfo, GstAudioFormatInfo)
public:
- /**
- * Defualt constructor.
- */
- virtual ~AudioFormatInfo();
-
/// Gets the underlying gobject.
- GstAudioFormatInfo* gobj() { return m_info; };
+ GstAudioFormatInfo* gobj() { return &m_info; };
/// Gets the underlying gobject.
- const GstAudioFormatInfo* gobj() const { return m_info; };
+ const GstAudioFormatInfo* gobj() const { return &m_info; };
_MEMBER_GET(format, format, AudioFormat, GstAudioFormat)
-
_MEMBER_SET(format, format, AudioFormat, GstAudioFormat)
_MEMBER_GET(name, name, std::string, const char*)
-
_MEMBER_SET(name, name, std::string, const char*)
_MEMBER_GET(description, description, std::string, const char*)
-
_MEMBER_SET(description, description, std::string, const char*)
_MEMBER_GET(flags, flags, AudioFormatFlags, GstAudioFormatFlags)
-
_MEMBER_SET(flags, flags, AudioFormatFlags, GstAudioFormatFlags)
+ _MEMBER_GET(endianness, endianness, int, gint)
+ _MEMBER_SET(endianness, endianness, int, gint)
+
+ _MEMBER_GET(width, width, int, gint)
+ _MEMBER_SET(width, width, int, gint)
+
+ _MEMBER_GET(depth, depth, int, gint)
+ _MEMBER_SET(depth, depth, int, gint)
+
+ _MEMBER_GET(unpack_format, unpack_format, AudioFormat, GstAudioFormat)
+ _MEMBER_SET(unpack_format, unpack_format, AudioFormat, GstAudioFormat)
+
protected:
#ifndef DOXYGEN_SHOULD_SKIP_THIS
- GstAudioFormatInfo* m_info;
- bool take_ownership;
+ GstAudioFormatInfo m_info;
#endif
};
} //namespace Gst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]