[gstreamermm] Tests: BufferListIterator: Make sure the GType system is initialized.



commit cd1b5877ca2fc41d7230c4c3ae88c25e7cf1472a
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Sun Oct 17 17:38:07 2010 -0400

    	Tests: BufferListIterator: Make sure the GType system is initialized.
    
    	* tests/test-buffer-list-iterator.cc: Initialize gstreamermm so that
    	the test executes successfully.  The code used for the last release
    	was slightly different and the new code seemed more correct, however
    	it was missing the initialization statement to make sure the GType
    	system was also initialized.

 ChangeLog                          |   10 ++++++++++
 tests/test-buffer-list-iterator.cc |    4 +++-
 2 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 48975c7..7fe4620 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-17  José Alburquerque  <jaalburqu svn gnome org>
+
+	Tests: BufferListIterator: Make sure the GType system is initialized.
+
+	* tests/test-buffer-list-iterator.cc: Initialize gstreamermm so that
+	the test executes successfully.  The code used for the last release
+	was slightly different and the new code seemed more correct, however
+	it was missing the initialization statement to make sure the GType
+	system was also initialized.
+
 0.10.8:
 
 2010-10-15  José Alburquerque  <jaalburqu svn gnome org>
diff --git a/tests/test-buffer-list-iterator.cc b/tests/test-buffer-list-iterator.cc
index 2d674d7..42d1d46 100644
--- a/tests/test-buffer-list-iterator.cc
+++ b/tests/test-buffer-list-iterator.cc
@@ -1,7 +1,9 @@
 #include <gstreamermm.h>
 
-int main(int, char**)
+int main(int argc, char** argv)
 {
+  Gst::init(argc, argv);
+
   Glib::RefPtr<Gst::BufferList> list = Gst::BufferList::create();
   Gst::BufferListIterator test;
   list->iterate(test);



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