[gstreamermm] Whitespace fixes and a TODO.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gstreamermm] Whitespace fixes and a TODO.
- Date: Tue, 3 Sep 2013 19:29:40 +0000 (UTC)
commit 91de13878f5e2a8e2612c5746af76b4d04624e1b
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 3 21:29:30 2013 +0200
Whitespace fixes and a TODO.
gstreamer/src/audioformat.hg | 12 ++++++------
gstreamer/src/audioinfo.hg | 8 ++++----
gstreamer/src/audioringbuffer.hg | 2 +-
gstreamer/src/basesink.hg | 12 ++++++------
gstreamer/src/bufferlist.hg | 7 ++++---
gstreamer/src/mapinfo.hg | 12 ++++++------
gstreamer/src/message.hg | 2 +-
gstreamer/src/pipeline.hg | 2 +-
gstreamer/src/structure.hg | 2 ++
9 files changed, 31 insertions(+), 28 deletions(-)
---
diff --git a/gstreamer/src/audioformat.hg b/gstreamer/src/audioformat.hg
index bd4d872..7dadd0d 100644
--- a/gstreamer/src/audioformat.hg
+++ b/gstreamer/src/audioformat.hg
@@ -24,19 +24,19 @@ _DEFS(gstreamermm,gst)
namespace Gst
{
- _WRAP_ENUM(AudioFormat, GstAudioFormat)
- _WRAP_ENUM(AudioFormatFlags, GstAudioFormatFlags)
+ _WRAP_ENUM(AudioFormat, GstAudioFormat)
+ _WRAP_ENUM(AudioFormatFlags, GstAudioFormatFlags)
/**
* Information for an audio format.
*/
class AudioFormatInfo
{
- _CLASS_GENERIC(AudioFormatInfo, GstAudioFormatInfo)
+ _CLASS_GENERIC(AudioFormatInfo, GstAudioFormatInfo)
public:
- /**
- * Defualt constructor.
- */
+ /**
+ * Defualt constructor.
+ */
virtual ~AudioFormatInfo();
/// Gets the underlying gobject.
diff --git a/gstreamer/src/audioinfo.hg b/gstreamer/src/audioinfo.hg
index 0220fd6..2c1c705 100644
--- a/gstreamer/src/audioinfo.hg
+++ b/gstreamer/src/audioinfo.hg
@@ -25,17 +25,17 @@ _DEFS(gstreamermm,gst)
namespace Gst
{
- _WRAP_ENUM(AudioFlags, GstAudioFlags)
- _WRAP_ENUM(AudioLayout, GstAudioLayout)
+ _WRAP_ENUM(AudioFlags, GstAudioFlags)
+ _WRAP_ENUM(AudioLayout, GstAudioLayout)
/**
* Information for an audio format.
*/
class AudioInfo : public Gst::AudioFormatInfo
{
- _CLASS_GENERIC(AudioInfo, GstAudioInfo)
+ _CLASS_GENERIC(AudioInfo, GstAudioInfo)
public:
- AudioInfo(const GstAudioInfo& info){}
+ AudioInfo(const GstAudioInfo& info){}
virtual ~AudioInfo();
diff --git a/gstreamer/src/audioringbuffer.hg b/gstreamer/src/audioringbuffer.hg
index 1936e00..53be02c 100644
--- a/gstreamer/src/audioringbuffer.hg
+++ b/gstreamer/src/audioringbuffer.hg
@@ -44,7 +44,7 @@ _WRAP_ENUM(AudioRingBufferFormatType, GstAudioRingBufferFormatType)
*/
class AudioRingBufferSpec
{
- _CLASS_GENERIC(AudioRingBufferSpec, GstAudioRingBufferSpec)
+ _CLASS_GENERIC(AudioRingBufferSpec, GstAudioRingBufferSpec)
public:
/** Default constructor.
* @throw std::runtime_error if memory is unavailable for the new
diff --git a/gstreamer/src/basesink.hg b/gstreamer/src/basesink.hg
index 2a6440d..95c66a3 100644
--- a/gstreamer/src/basesink.hg
+++ b/gstreamer/src/basesink.hg
@@ -181,7 +181,7 @@ public:
* @param time The running time to be reached.
* @return Gst::FlowReturn.
*/
- FlowReturn wait(ClockTime time);
+ FlowReturn wait(ClockTime time);
_WRAP_METHOD(void set_sync(bool sync), gst_base_sink_set_sync)
_WRAP_METHOD(bool get_sync() const, gst_base_sink_get_sync)
@@ -233,21 +233,21 @@ public:
/** Start processing. Ideal for opening resources in the subclass.
*/
- virtual bool start_vfunc();
+ virtual bool start_vfunc();
/** Stop processing. Subclasses should use this to close resources.
*/
- virtual bool stop_vfunc();
+ virtual bool stop_vfunc();
/** Unlock any pending access to the resource. Subclasses should unblock any
* blocked function ASAP.
*/
- virtual bool unlock_vfunc();
+ virtual bool unlock_vfunc();
#m4 _CONVERSION(`GstEvent*', `const Glib::RefPtr<Gst::Event>&', `Glib::wrap($3, true)')
/** Override this to handle events arriving on the sink pad.
*/
- virtual bool event_vfunc(const Glib::RefPtr<Gst::Event>& event);
+ virtual bool event_vfunc(const Glib::RefPtr<Gst::Event>& event);
/** Called to present the preroll buffer if desired.
*/
@@ -269,7 +269,7 @@ public:
* Called after actually activating the sink pad in pull mode. The default
* implementation starts a task on the sink pad.
*/
- virtual bool activate_pull_vfunc(bool active);
+ virtual bool activate_pull_vfunc(bool active);
/** Only useful in pull mode, this vmethod will be called in response to
* Gst::Pad::fixate_caps() being called on the sink pad. Implement if you
diff --git a/gstreamer/src/bufferlist.hg b/gstreamer/src/bufferlist.hg
index bbc4a48..bef2350 100644
--- a/gstreamer/src/bufferlist.hg
+++ b/gstreamer/src/bufferlist.hg
@@ -69,11 +69,12 @@ public:
public:
-_WRAP_METHOD(void remove(guint idx, guint length), gst_buffer_list_remove)
+ _WRAP_METHOD(void remove(guint idx, guint length), gst_buffer_list_remove)
-_WRAP_METHOD(Glib::RefPtr<Gst::Buffer> remove(guint idx), gst_buffer_list_get)
+ _WRAP_METHOD(Glib::RefPtr<Gst::Buffer> remove(guint idx), gst_buffer_list_get)
+
+ _WRAP_METHOD(void add(gint idx, const Glib::RefPtr<Gst::Buffer>& buffer), gst_buffer_list_insert)
-_WRAP_METHOD(void add(gint idx, const Glib::RefPtr<Gst::Buffer>& buffer), gst_buffer_list_insert)
/** Tests if you can safely add buffers and groups into a buffer list.
* @return <tt>true</tt> if the buffer list is writable, <tt>false</tt>
* otherwise.
diff --git a/gstreamer/src/mapinfo.hg b/gstreamer/src/mapinfo.hg
index 4717377..bc7cf41 100644
--- a/gstreamer/src/mapinfo.hg
+++ b/gstreamer/src/mapinfo.hg
@@ -39,16 +39,16 @@ _WRAP_ENUM(MapFlags, GstMapFlags)
*/
class MapInfo : public Glib::Object
{
- _CLASS_GENERIC(MapInfo, GstMapInfo)
+ _CLASS_GENERIC(MapInfo, GstMapInfo)
public:
- MapInfo();
+ MapInfo();
- explicit MapInfo(GstMapInfo& castitem,
- bool take_ownership = false);
+ explicit MapInfo(GstMapInfo& castitem,
+ bool take_ownership = false);
- MapInfo(const MapInfo& other);
+ MapInfo(const MapInfo& other);
- virtual ~MapInfo();
+ virtual ~MapInfo();
_MEMBER_GET(flags, flags, MapFlags, GstMapFlags)
diff --git a/gstreamer/src/message.hg b/gstreamer/src/message.hg
index 30445bf..499071e 100644
--- a/gstreamer/src/message.hg
+++ b/gstreamer/src/message.hg
@@ -94,7 +94,7 @@ public:
* returned.
* @return A Gst::Message (possibly the same pointer) that is writable.
*/
- Glib::RefPtr<Gst::Message> create_writable();
+ Glib::RefPtr<Gst::Message> create_writable();
_WRAP_METHOD(guint32 get_seqnum() const, gst_message_get_seqnum)
_WRAP_METHOD(void set_seqnum(guint32 seqnum), gst_message_set_seqnum)
diff --git a/gstreamer/src/pipeline.hg b/gstreamer/src/pipeline.hg
index 10f8b8a..2595c3c 100644
--- a/gstreamer/src/pipeline.hg
+++ b/gstreamer/src/pipeline.hg
@@ -97,7 +97,7 @@ public:
/** Create a new pipeline with a unique generic name.
* @return Newly created Gst::Pipeline. MT safe.
*/
- _WRAP_CREATE()
+ _WRAP_CREATE()
_WRAP_METHOD(Glib::RefPtr<Gst::Bus> get_bus(), gst_pipeline_get_bus)
_WRAP_METHOD(Glib::RefPtr<const Gst::Bus> get_bus() const, gst_pipeline_get_bus, constversion)
diff --git a/gstreamer/src/structure.hg b/gstreamer/src/structure.hg
index b06c214..33ee170 100644
--- a/gstreamer/src/structure.hg
+++ b/gstreamer/src/structure.hg
@@ -62,6 +62,8 @@ public:
static Structure create_from_string(const Glib::ustring& the_string);
_IGNORE(gst_structure_from_string)
+ //TODO: Use operator void*() instead. See similar stuff in gtkmm. murrayc.
+
/** Use this to discover if the Structure is a valid object.
*/
operator bool() const;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]