[gstreamermm] Don't use space before control statement brackets.
- From: José Alburquerque <jaalburqu src gnome org>
- To: svn-commits-list gnome org
- Subject: [gstreamermm] Don't use space before control statement brackets.
- Date: Tue, 19 May 2009 13:26:40 -0400 (EDT)
commit 3d9d78b4e2a8d2e15f0e980307ba13c0f5c5e0e7
Author: José Alburquerque <jaalburqu svn gnome org>
Date: Tue May 19 13:22:15 2009 -0400
Don't use space before control statement brackets.
---
ChangeLog | 25 +++++++++++++++++++++++++
gstreamer/gstreamermm/init.h | 16 ++++++++--------
gstreamer/src/audioclock.ccg | 4 ++--
gstreamer/src/bin.ccg | 2 +-
gstreamer/src/element.ccg | 4 ++--
gstreamer/src/element.hg | 4 ++--
gstreamer/src/elementfactory.hg | 4 ++--
gstreamer/src/event.ccg | 2 +-
gstreamer/src/format.ccg | 2 +-
gstreamer/src/ghostpad.ccg | 14 +++++++-------
gstreamer/src/interface.hg | 2 +-
gstreamer/src/iterator.hg | 18 +++++++++---------
gstreamer/src/message.ccg | 12 ++++++------
gstreamer/src/mixer.ccg | 2 +-
gstreamer/src/pad.ccg | 2 +-
gstreamer/src/query.ccg | 4 ++--
gstreamer/src/query.hg | 2 +-
gstreamer/src/ringbuffer.ccg | 10 +++++-----
gstreamer/src/structure.ccg | 22 +++++++++++-----------
gstreamer/src/taglist.ccg | 2 +-
gstreamer/src/taglist.hg | 4 ++--
gstreamer/src/task.ccg | 4 ++--
22 files changed, 93 insertions(+), 68 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c44b0ce..cb4e3db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,28 @@
+2009-05-19 José Alburquerque <jaalburqu svn gnome org>
+
+ * gstreamer/gstreamermm/init.h:
+ * gstreamer/src/audioclock.ccg:
+ * gstreamer/src/bin.ccg:
+ * gstreamer/src/element.ccg:
+ * gstreamer/src/element.hg:
+ * gstreamer/src/elementfactory.hg:
+ * gstreamer/src/event.ccg:
+ * gstreamer/src/format.ccg:
+ * gstreamer/src/ghostpad.ccg:
+ * gstreamer/src/interface.hg:
+ * gstreamer/src/iterator.hg:
+ * gstreamer/src/message.ccg:
+ * gstreamer/src/mixer.ccg:
+ * gstreamer/src/pad.ccg:
+ * gstreamer/src/query.ccg:
+ * gstreamer/src/query.hg:
+ * gstreamer/src/ringbuffer.ccg:
+ * gstreamer/src/structure.ccg:
+ * gstreamer/src/taglist.ccg:
+ * gstreamer/src/taglist.hg:
+ * gstreamer/src/task.ccg: Don't use space before control statement
+ brackets, for e.g. 'if(...)' and not 'if (...)'.
+
2009-05-18 José Alburquerque <jaalburqu svn gnome org>
* gstreamer/src/audiosink.hg:
diff --git a/gstreamer/gstreamermm/init.h b/gstreamer/gstreamermm/init.h
index d3476f2..89a0696 100644
--- a/gstreamer/gstreamermm/init.h
+++ b/gstreamer/gstreamermm/init.h
@@ -39,8 +39,8 @@ namespace Gst
* initialization can be done as follows:
*
* @code
- * if (!Glib::thread_supported ())
- * Glib::thread_init ();
+ * if(!Glib::thread_supported())
+ * Glib::thread_init();
* ...
* @endcode
*
@@ -69,8 +69,8 @@ void init(int& argc, char**& argv);
* thread initialization can be done as follows:
*
* @code
- * if (!Glib::thread_supported ())
- * Glib::thread_init ();
+ * if(!Glib::thread_supported())
+ * Glib::thread_init();
* ...
* @endcode
*
@@ -91,8 +91,8 @@ void init();
* initialization can be done as follows:
*
* @code
- * if (!Glib::thread_supported ())
- * Glib::thread_init ();
+ * if(!Glib::thread_supported())
+ * Glib::thread_init();
* ...
* @endcode
*
@@ -122,8 +122,8 @@ void init();
* initialization can be done as follows:
*
* @code
- * if (!Glib::thread_supported ())
- * Glib::thread_init ();
+ * if(!Glib::thread_supported())
+ * Glib::thread_init();
* ...
* @endcode
*
diff --git a/gstreamer/src/audioclock.ccg b/gstreamer/src/audioclock.ccg
index 33108d3..8a7d9b5 100644
--- a/gstreamer/src/audioclock.ccg
+++ b/gstreamer/src/audioclock.ccg
@@ -61,7 +61,7 @@ bool AudioClock::_slot_set(bool mark_set) const
{
static bool slot_set = false;
- if (mark_set)
+ if(mark_set)
slot_set = true;
return slot_set;
@@ -70,7 +70,7 @@ bool AudioClock::_slot_set(bool mark_set) const
AudioClock::~AudioClock()
{
- if (_slot_set())
+ if(_slot_set())
delete slot;
}
diff --git a/gstreamer/src/bin.ccg b/gstreamer/src/bin.ccg
index 5e84a5d..8c44247 100644
--- a/gstreamer/src/bin.ccg
+++ b/gstreamer/src/bin.ccg
@@ -48,7 +48,7 @@ Glib::RefPtr<Gst::Bin> Bin::add(const Glib::RefPtr<Gst::Element>& element)
// bin and GStreamer complains about it. The extra reference to the element
// is removed when the bin is destroyed or when the element is removed from
// the bin (see gst_bin_remove).
- if (G_LIKELY(GST_OBJECT_IS_FLOATING(celement)))
+ if(G_LIKELY(GST_OBJECT_IS_FLOATING(celement)))
element->reference();
const bool result = gst_bin_add(gobj(), celement);
diff --git a/gstreamer/src/element.ccg b/gstreamer/src/element.ccg
index 2fd41ac..40b7b79 100644
--- a/gstreamer/src/element.ccg
+++ b/gstreamer/src/element.ccg
@@ -59,7 +59,7 @@ Glib::ustring get_name(StateChangeReturn s)
Glib::RefPtr<Gst::Element> Element::link(const Glib::RefPtr<Gst::Element>& dest)
{
- if (!dest)
+ if(!dest)
throw std::runtime_error("Failed to link null element.");
const bool result = gst_element_link(gobj(), dest->gobj());
@@ -72,7 +72,7 @@ Glib::RefPtr<Gst::Element> Element::link(const Glib::RefPtr<Gst::Element>& dest)
Glib::RefPtr<Gst::Element> Element::link(const Glib::RefPtr<Gst::Element>& dest, const Glib::RefPtr<Gst::Caps>& filter)
{
- if (!dest)
+ if(!dest)
throw std::runtime_error("Failed to link null element.");
const bool result = gst_element_link_filtered(gobj(), dest->gobj(), filter->gobj());
diff --git a/gstreamer/src/element.hg b/gstreamer/src/element.hg
index cc555c4..a635143 100644
--- a/gstreamer/src/element.hg
+++ b/gstreamer/src/element.hg
@@ -433,7 +433,7 @@ protected:
* Glib::RefPtr< Gst::ElementInterfaced<Gst::URIHandler> > handler =
* Gst::Interface::cast<Gst::URIHandler>(element);
*
- * if (handler)
+ * if(handler)
* {
* std::cout << "element '" << element->get_name() <<
* "' implements URIHandler interface." << std::endl;
@@ -480,7 +480,7 @@ template <class T_Interface>
ElementInterfaced<T_Interface>::ElementInterfaced(GstElement* castitem)
{
gobject_ = (GObject*)castitem;
- if (gobject_) {
+ if(gobject_) {
gst_object_ref(Element::gobj());
g_object_weak_ref(gobject_,
&ElementInterfaced_WeakNotify_gstreamermm_callback, this);
diff --git a/gstreamer/src/elementfactory.hg b/gstreamer/src/elementfactory.hg
index 07d82b0..2e1e09a 100644
--- a/gstreamer/src/elementfactory.hg
+++ b/gstreamer/src/elementfactory.hg
@@ -52,7 +52,7 @@ class Plugin;
*
* srcfactory = Gst::ElementFactory::find("filesrc");
*
- * if (!srcfactory)
+ * if(!srcfactory)
* {
* std::cout << "Could not find factory 'filesrc'" << std::endl;
* exit(1);
@@ -60,7 +60,7 @@ class Plugin;
*
* src = srcfactory->create_named_element("src");
*
- * if (!src)
+ * if(!src)
* {
* std::cout << "Could not create element 'src'" << std::endl;
* exit(1);
diff --git a/gstreamer/src/event.ccg b/gstreamer/src/event.ccg
index 5eb5e77..11c85d9 100644
--- a/gstreamer/src/event.ccg
+++ b/gstreamer/src/event.ccg
@@ -223,7 +223,7 @@ Glib::RefPtr<Gst::Event> Event::wrap(GstEvent* event, bool take_copy)
if(!event)
return result;
- switch (GST_EVENT_TYPE(event))
+ switch(GST_EVENT_TYPE(event))
{
case GST_EVENT_FLUSH_START:
result = Glib::RefPtr<Gst::Event>( new Gst::EventFlushStart(event) );
diff --git a/gstreamer/src/format.ccg b/gstreamer/src/format.ccg
index c5d997f..d8c031e 100644
--- a/gstreamer/src/format.ccg
+++ b/gstreamer/src/format.ccg
@@ -32,7 +32,7 @@ FormatDefinition::FormatDefinition(const GstFormatDefinition* castitem)
: value(Gst::FORMAT_UNDEFINED),
quark((castitem) ? castitem->quark : 0)
{
- if (castitem)
+ if(castitem)
{
value = (Format)(castitem->value);
nick = castitem->nick;
diff --git a/gstreamer/src/ghostpad.ccg b/gstreamer/src/ghostpad.ccg
index 831dc0a..372f8fe 100644
--- a/gstreamer/src/ghostpad.ccg
+++ b/gstreamer/src/ghostpad.ccg
@@ -33,12 +33,12 @@ GhostPad::GhostPad(const Glib::ustring& name,
"direction",
((target) ? ((GstPadDirection) target->get_direction()) : GST_PAD_UNKNOWN))
{
- if (!target)
+ if(!target)
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
" const Glib::RefPtr<Gst::Pad>&): "
"Failed to construct ghost pad (name = " + name + ") from null target.");
- if (!gst_ghost_pad_construct(gobj()) ||
+ if(!gst_ghost_pad_construct(gobj()) ||
!gst_ghost_pad_set_target(gobj(), target->gobj()))
{
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
@@ -51,7 +51,7 @@ GhostPad::GhostPad(const Glib::ustring& name,
GhostPad::GhostPad(const Glib::ustring& name, PadDirection direction)
: _CONSTRUCT("name", name.c_str(), "direction", (GstPadDirection) direction)
{
- if (!gst_ghost_pad_construct(gobj()))
+ if(!gst_ghost_pad_construct(gobj()))
{
std::stringstream int_conv_stream;
int_conv_stream << direction;
@@ -69,13 +69,13 @@ GhostPad::GhostPad(const Glib::ustring& name,
((target) ? ((GstPadDirection) target->get_direction()) : GST_PAD_UNKNOWN),
"template", ((templ) ? templ->gobj() : 0))
{
- if (!target || !templ)
+ if(!target || !templ)
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
" const Glib::RefPtr<Gst::Pad>&, const Glib::RefPtr<Gst::PadTemplate>&):"
" Failed to construct ghost pad (name = " + name + ") from null "
"target or template.");
- if (!gst_ghost_pad_construct(gobj()) ||
+ if(!gst_ghost_pad_construct(gobj()) ||
!gst_ghost_pad_set_target(gobj(), target->gobj()))
{
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
@@ -92,13 +92,13 @@ GhostPad::GhostPad(const Glib::ustring& name,
((templ) ? ((GstPadDirection) templ->get_direction()) : GST_PAD_UNKNOWN),
"template", ((templ) ? templ->gobj() : 0))
{
- if (!templ)
+ if(!templ)
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
" const Glib::RefPtr<Gst::PadTemplate>&): "
"Failed to construct ghost pad (name = " + name +
") from null template.");
- if (!gst_ghost_pad_construct(gobj()))
+ if(!gst_ghost_pad_construct(gobj()))
{
throw std::runtime_error("Gst::GhostPad::GhostPad(const Glib::ustring&,"
" const Glib::RefPtr<Gst::PadTemplate>&): "
diff --git a/gstreamer/src/interface.hg b/gstreamer/src/interface.hg
index fafb4f3..11bb739 100644
--- a/gstreamer/src/interface.hg
+++ b/gstreamer/src/interface.hg
@@ -113,7 +113,7 @@ public:
template <class T_CastTo>
Glib::RefPtr< Gst::ElementInterfaced<T_CastTo> > Interface::cast(const Glib::RefPtr<Gst::Element>& element)
{
- if (element && gst_element_implements_interface(element->gobj(), T_CastTo::get_type()))
+ if(element && gst_element_implements_interface(element->gobj(), T_CastTo::get_type()))
{
void* result =
gst_implements_interface_cast(element->gobj(), T_CastTo::get_type());
diff --git a/gstreamer/src/iterator.hg b/gstreamer/src/iterator.hg
index 4d04ad6..5c03842 100644
--- a/gstreamer/src/iterator.hg
+++ b/gstreamer/src/iterator.hg
@@ -246,7 +246,7 @@ IteratorResult IteratorBase<CppType>::next()
current_result = (Gst::IteratorResult) gst_iterator_next(cobj(), ¤t);
// Set current to null if iterator is done:
- if (current_result == Gst::ITERATOR_DONE)
+ if(current_result == Gst::ITERATOR_DONE)
current = 0;
return current_result;
@@ -333,7 +333,7 @@ void IteratorBase<CppType>::swap(IteratorBase<CppType>& other)
template<class CppType>
IteratorBase<CppType>::~IteratorBase()
{
- if (take_ownership && cobject_)
+ if(take_ownership && cobject_)
{
gst_iterator_free(cobject_);
cobject_ = 0;
@@ -364,7 +364,7 @@ CppType IteratorBasic<CppType>::operator*() const
{
typedef typename CppType::BaseObjectType CType;
- if (this->current)
+ if(this->current)
return CppType((CType*)(this->current));
else
return CppType();
@@ -375,7 +375,7 @@ CppType* IteratorBasic<CppType>::operator->() const
{
static typename CppType::CppObjectType result;
- if (this->current)
+ if(this->current)
{
result = this->operator*();
return &result;
@@ -389,9 +389,9 @@ IteratorBasic<CppType>& IteratorBasic<CppType>::operator++()
{
const IteratorResult result = this->next();
- if (result == Gst::ITERATOR_RESYNC)
+ if(result == Gst::ITERATOR_RESYNC)
throw std::runtime_error("Concurrent update of iterator elements. Please resync.");
- else if (result == Gst::ITERATOR_ERROR)
+ else if(result == Gst::ITERATOR_ERROR)
throw std::runtime_error("Iterator error while incrementing.");
return *this;
@@ -425,7 +425,7 @@ IteratorResult Iterator<CppType>::next()
// Remove extra reference that gst_iterator_next() takes because references
// are taken when using Gst::Iterator<CppType> dereferencing operators (* and
// ->).
- if (this->current)
+ if(this->current)
g_object_unref(this->current);
return result;
@@ -436,7 +436,7 @@ Glib::RefPtr<CppType> Iterator<CppType>::operator*() const
{
typedef typename CppType::BaseObjectType CType;
- if (this->current)
+ if(this->current)
{
//Take extra reference when dereferencing. The reference will disappear
//when Glib::RefPtr<> is destroyed.
@@ -451,7 +451,7 @@ CppType* Iterator<CppType>::operator->() const
{
typedef typename CppType::BaseObjectType CType;
- if (this->current)
+ if(this->current)
{
//Take extra reference when dereferencing. The reference will disappear
//when Glib::RefPtr<> is destroyed.
diff --git a/gstreamer/src/message.ccg b/gstreamer/src/message.ccg
index b0128da..c395333 100644
--- a/gstreamer/src/message.ccg
+++ b/gstreamer/src/message.ccg
@@ -99,7 +99,7 @@ std::string MessageError::parse_debug() const
gst_message_parse_error(const_cast<GstMessage*>(gobj()), 0, &c_debug);
std::string result = c_debug;
- if (c_debug)
+ if(c_debug)
g_free(c_debug);
return result;
@@ -142,7 +142,7 @@ std::string MessageWarning::parse_debug() const
gst_message_parse_warning(const_cast<GstMessage*>(gobj()), 0, &c_debug);
std::string result = c_debug;
- if (c_debug)
+ if(c_debug)
g_free(c_debug);
return result;
@@ -186,7 +186,7 @@ std::string MessageInfo::parse_debug() const
gst_message_parse_info(const_cast<GstMessage*>(gobj()), 0, &c_debug);
std::string result = c_debug;
- if (c_debug)
+ if(c_debug)
g_free(c_debug);
return result;
@@ -608,9 +608,9 @@ Glib::RefPtr<Gst::Message> Message::wrap(GstMessage* message, bool take_copy)
if(!message)
return result;
- if (gst_mixer_message_get_type(message) == GST_MIXER_MESSAGE_INVALID)
+ if(gst_mixer_message_get_type(message) == GST_MIXER_MESSAGE_INVALID)
{
- switch (GST_MESSAGE_TYPE(message))
+ switch(GST_MESSAGE_TYPE(message))
{
case GST_MESSAGE_EOS:
result = Glib::RefPtr<Gst::Message>( new Gst::MessageEos(message) );
@@ -680,7 +680,7 @@ Glib::RefPtr<Gst::Message> Message::wrap(GstMessage* message, bool take_copy)
}
else
{
- switch (GST_MESSAGE_TYPE(message))
+ switch(GST_MESSAGE_TYPE(message))
{
case GST_MIXER_MESSAGE_MUTE_TOGGLED:
result = Glib::RefPtr<Gst::Message>( new Gst::MessageMixerMuteToggled(message) );
diff --git a/gstreamer/src/mixer.ccg b/gstreamer/src/mixer.ccg
index 4bdf341..9ac5945 100644
--- a/gstreamer/src/mixer.ccg
+++ b/gstreamer/src/mixer.ccg
@@ -228,7 +228,7 @@ void Mixer_Class::get_volume_vfunc_callback(GstMixer* self, GstMixerTrack* track
// Call the virtual member method, which derived classes might override.
Glib::ArrayHandle<int> result = obj->get_volume_vfunc(Glib::wrap(track, true));
const int* result_data = result.data();
- for (guint i = 0; i < result.size(); i++)
+ for(guint i = 0; i < result.size(); i++)
{
volumes[i] = result_data[i];
}
diff --git a/gstreamer/src/pad.ccg b/gstreamer/src/pad.ccg
index 065ebbd..982cd51 100644
--- a/gstreamer/src/pad.ccg
+++ b/gstreamer/src/pad.ccg
@@ -72,7 +72,7 @@ static void Pad_Data_gstreamermm_callback_disconnect(void* data)
{
Gst::Pad::SlotData* the_slot = static_cast<Gst::Pad::SlotData*>(data);
- if (the_slot)
+ if(the_slot)
delete the_slot;
}
diff --git a/gstreamer/src/query.ccg b/gstreamer/src/query.ccg
index 1e10ba6..9c7c45d 100644
--- a/gstreamer/src/query.ccg
+++ b/gstreamer/src/query.ccg
@@ -34,7 +34,7 @@ QueryTypeDefinition::QueryTypeDefinition(const GstQueryTypeDefinition* castitem)
: value(Gst::QUERY_NONE),
quark((castitem) ? castitem->quark : 0)
{
- if (castitem)
+ if(castitem)
{
value = (QueryType)(castitem->value);
nick = castitem->nick;
@@ -548,7 +548,7 @@ Glib::RefPtr<Gst::Query> Query::wrap(GstQuery* query, bool take_copy)
if(!query)
return result;
- switch (GST_QUERY_TYPE(query))
+ switch(GST_QUERY_TYPE(query))
{
case GST_QUERY_POSITION:
result = Glib::RefPtr<Gst::Query>( new Gst::QueryPosition(query) );
diff --git a/gstreamer/src/query.hg b/gstreamer/src/query.hg
index 8506b18..2011589 100644
--- a/gstreamer/src/query.hg
+++ b/gstreamer/src/query.hg
@@ -100,7 +100,7 @@ _IGNORE(gst_query_type_to_quark)
* @code
* Glib::RefPtr<Gst::Query> query = Gst::QueryDuration::create(Gst::FORMAT_TIME);
* bool res = pipeline->query(query);
- * if (res)
+ * if(res)
* {
* gint64 duration = query.parse();
* ...
diff --git a/gstreamer/src/ringbuffer.ccg b/gstreamer/src/ringbuffer.ccg
index d8645dc..b8f8b62 100644
--- a/gstreamer/src/ringbuffer.ccg
+++ b/gstreamer/src/ringbuffer.ccg
@@ -44,7 +44,7 @@ namespace Gst
RingBufferSpec::RingBufferSpec(const GstRingBufferSpec* castitem)
{
- if (castitem)
+ if(castitem)
copy_fields_from(*castitem);
else
{
@@ -77,7 +77,7 @@ void RingBufferSpec::copy_fields_from(const GstRingBufferSpec& spec)
void RingBufferSpec::copy_fields_to(GstRingBufferSpec& spec) const
{
- if (caps)
+ if(caps)
spec.caps = caps->gobj();
spec.type = (GstBufferFormatType)(type);
@@ -100,7 +100,7 @@ void RingBufferSpec::copy_fields_to(GstRingBufferSpec& spec) const
void RingBuffer::set_fill_slot(const SlotFill& slot)
{
- if (_slot_set())
+ if(_slot_set())
delete this->slot;
this->slot = new SlotFill(slot);
@@ -114,7 +114,7 @@ bool RingBuffer::_slot_set(bool mark_set) const
{
static bool slot_set = false;
- if (mark_set)
+ if(mark_set)
slot_set = true;
return slot_set;
@@ -139,7 +139,7 @@ bool RingBuffer::parse_caps(Gst::RingBufferSpec& spec, const Glib::RefPtr<Gst::C
RingBuffer::~RingBuffer()
{
// Delete task's slot upon destruction
- if (_slot_set())
+ if(_slot_set())
delete slot;
}
diff --git a/gstreamer/src/structure.ccg b/gstreamer/src/structure.ccg
index 4ecac69..42c2f92 100644
--- a/gstreamer/src/structure.ccg
+++ b/gstreamer/src/structure.ccg
@@ -186,7 +186,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
//GStreamer GTypes (e.g. a Glib::Value<Gst::Fourcc> is converted to the
//GST_TYPE_FOURCC GType).
- if (type == Glib::Value<Fourcc>::value_type())
+ if(type == Glib::Value<Fourcc>::value_type())
{
const Glib::Value<Fourcc>* fourcc =
static_cast< const Glib::Value<Fourcc>* >(&value);
@@ -194,7 +194,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_FOURCC,
fourcc->get().get_fourcc(), (void*)0);
}
- else if (type == Glib::Value<IntRange>::value_type())
+ else if(type == Glib::Value<IntRange>::value_type())
{
const Glib::Value<IntRange>* range =
static_cast< const Glib::Value<IntRange>* >(&value);
@@ -202,7 +202,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_INT_RANGE,
range->get().min, range->get().max, (void*)0);
}
- else if (type == Glib::Value<DoubleRange>::value_type())
+ else if(type == Glib::Value<DoubleRange>::value_type())
{
const Glib::Value<DoubleRange>* range =
static_cast< const Glib::Value<DoubleRange>* >(&value);
@@ -210,7 +210,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_DOUBLE_RANGE,
range->get().min, range->get().max, (void*)0);
}
- else if (type == Glib::Value<Fraction>::value_type())
+ else if(type == Glib::Value<Fraction>::value_type())
{
const Glib::Value<Fraction>* fract =
static_cast< const Glib::Value<Fraction>* >(&value);
@@ -218,7 +218,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_FRACTION,
fract->get().num, fract->get().denom, (void*)0);
}
- else if (type == Glib::Value<FractionRange>::value_type())
+ else if(type == Glib::Value<FractionRange>::value_type())
{
const Glib::Value<FractionRange>* range =
static_cast< const Glib::Value<FractionRange>* >(&value);
@@ -227,7 +227,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
range->get().min.num, range->get().min.denom, range->get().max.num,
range->get().max.denom, (void*)0);
}
- else if (type == Glib::Value<Glib::Date>::value_type())
+ else if(type == Glib::Value<Glib::Date>::value_type())
{
const Glib::Value<Glib::Date>* date =
static_cast< const Glib::Value<Glib::Date>* >(&value);
@@ -235,7 +235,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_DATE,
date->get().gobj(), (void*)0);
}
- else if (type == Glib::Value<Structure>::value_type())
+ else if(type == Glib::Value<Structure>::value_type())
{
const Glib::Value<Structure>* obj =
static_cast< const Glib::Value<Structure>* >(&value);
@@ -243,7 +243,7 @@ void Structure::_set_gstructure_field(GstStructure* cstructure, const Glib::ustr
gst_structure_set(cstructure, fieldname.c_str(), GST_TYPE_STRUCTURE,
obj->get().gobj(), (void*)0);
}
- else if (type == Glib::Value<MiniObject>::value_type())
+ else if(type == Glib::Value<MiniObject>::value_type())
{
const Glib::Value<MiniObject>* obj =
static_cast< const Glib::Value<MiniObject>* >(&value);
@@ -360,7 +360,7 @@ bool Structure::get_field(const Glib::ustring& name, Gst::IntRange& range) const
{
const GValue* gst_range_val = gst_structure_get_value(gobj(), name.c_str());
- if (G_VALUE_TYPE(gst_range_val) == GST_TYPE_INT_RANGE)
+ if(G_VALUE_TYPE(gst_range_val) == GST_TYPE_INT_RANGE)
{
const gint min = gst_value_get_int_range_min(gst_range_val);
const gint max = gst_value_get_int_range_max(gst_range_val);
@@ -375,7 +375,7 @@ bool Structure::get_field(const Glib::ustring& name, Gst::DoubleRange& range) co
{
const GValue* gst_range_val = gst_structure_get_value(gobj(), name.c_str());
- if (G_VALUE_TYPE(gst_range_val) == GST_TYPE_DOUBLE_RANGE)
+ if(G_VALUE_TYPE(gst_range_val) == GST_TYPE_DOUBLE_RANGE)
{
const gdouble min = gst_value_get_double_range_min(gst_range_val);
const gdouble max = gst_value_get_double_range_max(gst_range_val);
@@ -390,7 +390,7 @@ bool Structure::get_field(const Glib::ustring& name, Gst::FractionRange& range)
{
const GValue* gst_range_val = gst_structure_get_value(gobj(), name.c_str());
- if (G_VALUE_TYPE(gst_range_val) == GST_TYPE_FRACTION_RANGE)
+ if(G_VALUE_TYPE(gst_range_val) == GST_TYPE_FRACTION_RANGE)
{
const GValue* gst_min_val = gst_value_get_fraction_range_min(gst_range_val);
const gint min_num = gst_value_get_fraction_numerator(gst_min_val);
diff --git a/gstreamer/src/taglist.ccg b/gstreamer/src/taglist.ccg
index 9885986..42e5d0f 100644
--- a/gstreamer/src/taglist.ccg
+++ b/gstreamer/src/taglist.ccg
@@ -71,7 +71,7 @@ bool TagList::get(const Glib::ustring& tag, guint index,
const GValue* gst_value =
gst_tag_list_get_value_index(const_cast<GstTagList*>(gobj()),
tag.c_str(), index);
- if (gst_value)
+ if(gst_value)
{
value.init(gst_value);
return true;
diff --git a/gstreamer/src/taglist.hg b/gstreamer/src/taglist.hg
index 723f388..721e72a 100644
--- a/gstreamer/src/taglist.hg
+++ b/gstreamer/src/taglist.hg
@@ -416,7 +416,7 @@ bool TagList::get(const Glib::ustring& tag, DataType& data) const
Glib::Value<DataType> value;
bool result = this->get(tag, (Glib::ValueBase&) value);
- if (result)
+ if(result)
data = value.get();
return result;
@@ -428,7 +428,7 @@ bool TagList::get(const Glib::ustring& tag, guint index, DataType& data) const
Glib::Value<DataType> value;
bool result = this->get(tag, index, (Glib::ValueBase&) value);
- if (result)
+ if(result)
data = value.get();
return result;
diff --git a/gstreamer/src/task.ccg b/gstreamer/src/task.ccg
index 1576006..d0f22d7 100644
--- a/gstreamer/src/task.ccg
+++ b/gstreamer/src/task.ccg
@@ -60,7 +60,7 @@ bool Task::_slot_set(bool mark_set) const
{
static bool slot_set = false;
- if (mark_set)
+ if(mark_set)
slot_set = true;
return slot_set;
@@ -69,7 +69,7 @@ bool Task::_slot_set(bool mark_set) const
Task::~Task()
{
// Delete task's slot upon destruction
- if (_slot_set())
+ if(_slot_set())
delete slot;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]