gnomemm r1568 - in gstreamermm/trunk: . tests



Author: jaalburqu
Date: Thu Jun 19 04:26:48 2008
New Revision: 1568
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1568&view=rev

Log:
2008-06-19  Josà Alburquerque  <jaalburqu svn gnome org>

	* tests/Makefile.am:
	* tests/test-pad.cc: Added simple pad test to confirm warning reported
	in bug #539063 which in fact does produce the warning. Filed gstreamer
	bug #539055 explaining that some of their GObject instances are not
	initialized with the construction properties.

Added:
   gstreamermm/trunk/tests/test-pad.cc
Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/tests/Makefile.am

Modified: gstreamermm/trunk/tests/Makefile.am
==============================================================================
--- gstreamermm/trunk/tests/Makefile.am	(original)
+++ gstreamermm/trunk/tests/Makefile.am	Thu Jun 19 04:26:48 2008
@@ -7,7 +7,7 @@
                   test-link-elements test-create-bin test-miniobject-wrap \
                   test-message-wrap test-event-wrap test-query-wrap \
 		  test-structure test-caps-structures test-interface \
-		  test-create-bus test-taglist test-tagsetter
+		  test-create-bus test-taglist test-tagsetter test-pad
 
 test_caps_SOURCES=test-caps.cc
 test_caps_LDFLAGS= GSTREAMERMM_LIBS@
@@ -54,6 +54,9 @@
 test_tagsetter_SOURCES=test-tagsetter.cc
 test_tagsetter_LDFLAGS= GSTREAMERMM_LIBS@
 
+test_pad_SOURCES=test-pad.cc
+test_pad_LDFLAGS= GSTREAMERMM_LIBS@
+
 #runtestbasic runtestlangs \
 #runtestsearch runtestmimetypes \
 #runtestgetbuffer

Added: gstreamermm/trunk/tests/test-pad.cc
==============================================================================
--- (empty file)
+++ gstreamermm/trunk/tests/test-pad.cc	Thu Jun 19 04:26:48 2008
@@ -0,0 +1,40 @@
+// -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
+
+/* gstreamermm - a C++ wrapper for gstreamer
+ *
+ * Copyright 2008 The gstreamermm Development Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the Free
+ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <gstreamermm.h>
+#include <iostream>
+
+int main (int argc, char* argv[])
+{
+  Gst::init(argc, argv);
+
+  Glib::RefPtr<Gst::Pad> pad;
+
+  pad = Gst::Pad::create("test", Gst::PAD_SRC);
+
+  if (pad)
+  {
+    std::cout << "Successfully created pad '" << pad->get_name() << "'." <<
+      std::endl;
+  }
+
+  return 0;
+}



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