gnomemm r2049 - in gstreamermm/trunk: . gstreamer/src tests tools/extra_defs_gen



Author: jaalburqu
Date: Mon Feb 16 23:21:26 2009
New Revision: 2049
URL: http://svn.gnome.org/viewvc/gnomemm?rev=2049&view=rev

Log:
2009-02-16  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/src/bus.ccg:
	* gstreamer/src/clock.ccg:
	* gstreamer/src/filter.ccg:
	* gstreamer/src/index.ccg:
	* gstreamer/src/iterator.hg:
	* gstreamer/src/mixer.ccg:
	* gstreamer/src/pad.ccg:
	* gstreamer/src/registry.ccg:
	* gstreamer/src/structure.ccg:
	* tests/test-structure.cc:
	* tools/extra_defs_gen/generate_plugin_gmmproc_file.cc: Fixed warnings
	that come from using the -Wall flag when compiling.

Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/src/bus.ccg
   gstreamermm/trunk/gstreamer/src/clock.ccg
   gstreamermm/trunk/gstreamer/src/filter.ccg
   gstreamermm/trunk/gstreamer/src/index.ccg
   gstreamermm/trunk/gstreamer/src/iterator.hg
   gstreamermm/trunk/gstreamer/src/mixer.ccg
   gstreamermm/trunk/gstreamer/src/pad.ccg
   gstreamermm/trunk/gstreamer/src/registry.ccg
   gstreamermm/trunk/gstreamer/src/structure.ccg
   gstreamermm/trunk/tests/test-structure.cc
   gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc

Modified: gstreamermm/trunk/gstreamer/src/bus.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/bus.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/bus.ccg	Mon Feb 16 23:21:26 2009
@@ -37,6 +37,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static void Bus_Message_gstreamermm_callback_destroy(void* data)
@@ -60,6 +62,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return GST_BUS_PASS;
 }
 
 namespace Gst

Modified: gstreamermm/trunk/gstreamer/src/clock.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/clock.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/clock.ccg	Mon Feb 16 23:21:26 2009
@@ -42,6 +42,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 namespace Gst

Modified: gstreamermm/trunk/gstreamer/src/filter.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/filter.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/filter.ccg	Mon Feb 16 23:21:26 2009
@@ -40,6 +40,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 namespace Gst

Modified: gstreamermm/trunk/gstreamer/src/index.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/index.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/index.ccg	Mon Feb 16 23:21:26 2009
@@ -39,6 +39,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static void Index_Filter_gstreamermm_callback_destroy(void* data)
@@ -73,6 +75,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static void Index_Resolver_gstreamermm_callback_destroy(void* data)

Modified: gstreamermm/trunk/gstreamer/src/iterator.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/iterator.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/iterator.hg	Mon Feb 16 23:21:26 2009
@@ -279,26 +279,26 @@
 }
 template<class CppType>
 IteratorBase<CppType>::IteratorBase()
-: cobject_(0),
-  take_ownership(true),
-  current(0),
-  current_result(Gst::ITERATOR_OK)
+: current(0),
+  current_result(Gst::ITERATOR_OK),
+  cobject_(0),
+  take_ownership(true)
 {}
 
 template<class CppType>
 IteratorBase<CppType>::IteratorBase(const IteratorBase<CppType>& other)
-  : cobject_(const_cast<GstIterator*>(other.cobj())),
-    take_ownership((other.cobj()) ? false : true),
-    current(other.current),
-    current_result(other.current_result)
+  : current(other.current),
+    current_result(other.current_result),
+    cobject_(const_cast<GstIterator*>(other.cobj())),
+    take_ownership((other.cobj()) ? false : true)
 {}
 
 template<class CppType>
 IteratorBase<CppType>::IteratorBase(GstIterator* castitem, bool take_ownership)
-: cobject_(castitem),
-  take_ownership(take_ownership),
-  current(0),
-  current_result(Gst::ITERATOR_OK)
+: current(0),
+  current_result(Gst::ITERATOR_OK),
+  cobject_(castitem),
+  take_ownership(take_ownership)
 {}
 
 template<class CppType>

Modified: gstreamermm/trunk/gstreamer/src/mixer.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/mixer.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/mixer.ccg	Mon Feb 16 23:21:26 2009
@@ -58,7 +58,7 @@
       // 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 (int i = 0; i < result.size(); i++)
+      for (guint i = 0; i < result.size(); i++)
       {
         volumes[i] = result_data[i];
       }

Modified: gstreamermm/trunk/gstreamer/src/pad.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/pad.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/pad.ccg	Mon Feb 16 23:21:26 2009
@@ -48,7 +48,7 @@
   #endif //GLIBMM_EXCEPTIONS_ENABLED
 }
 
-static bool Pad_Data_gstreamermm_callback(GstPad* pad, GstMiniObject* mini_obj, void* data)
+static gboolean Pad_Data_gstreamermm_callback(GstPad* pad, GstMiniObject* mini_obj, void* data)
 {
   Gst::Pad::SlotData* the_slot = static_cast<Gst::Pad::SlotData*>(data);
 
@@ -64,6 +64,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static void Pad_Data_gstreamermm_callback_disconnect(void* data)

Modified: gstreamermm/trunk/gstreamer/src/registry.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/registry.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/registry.ccg	Mon Feb 16 23:21:26 2009
@@ -43,6 +43,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static gboolean Registry_PluginFeature_Filter_gstreamermm_callback(GstPluginFeature* feature, void* data)
@@ -66,6 +68,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 namespace Gst

Modified: gstreamermm/trunk/gstreamer/src/structure.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/structure.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/structure.ccg	Mon Feb 16 23:21:26 2009
@@ -44,6 +44,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 static gboolean
@@ -68,6 +70,8 @@
     Glib::exception_handlers_invoke();
   }
   #endif //GLIBMM_EXCEPTIONS_ENABLED
+
+  return false;
 }
 
 namespace Gst
@@ -396,7 +400,7 @@
     const gint max_num = gst_value_get_fraction_numerator(gst_max_val);
     const gint max_denom = gst_value_get_fraction_denominator(gst_max_val);
 
-    range = Gst::FractionRange(Gst::Fraction(min_num, max_num),
+    range = Gst::FractionRange(Gst::Fraction(min_num, min_denom),
       Gst::Fraction(max_num, max_denom));
 
     return true;

Modified: gstreamermm/trunk/tests/test-structure.cc
==============================================================================
--- gstreamermm/trunk/tests/test-structure.cc	(original)
+++ gstreamermm/trunk/tests/test-structure.cc	Mon Feb 16 23:21:26 2009
@@ -65,7 +65,7 @@
 
   int state;
   structure.get_field("state", Glib::Value<Gst::State>::value_type(), state);
-  if (state = Gst::STATE_PAUSED)
+  if ((state = Gst::STATE_PAUSED))
     std::cout << "state value after getting = Gst::STATE_PAUSED." <<
       std::endl;
 

Modified: gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc
==============================================================================
--- gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc	(original)
+++ gstreamermm/trunk/tools/extra_defs_gen/generate_plugin_gmmproc_file.cc	Mon Feb 16 23:21:26 2009
@@ -380,7 +380,7 @@
 
   GType parent_type = g_type_parent(type);
 
-  for (int i = 0; i < n_interfaces; i++)
+  for (guint i = 0; i < n_interfaces; i++)
   {
     if (!g_type_is_a(parent_type, interfaces[i]))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]