[0.11] gst-plugins-base: tests: improve tests

Wim Taymans wtay at kemper.freedesktop.org
Tue Jan 31 08:48:07 PST 2012


Module: gst-plugins-base
Branch: 0.11
Commit: f95d34075879b1512406c8adfb5a2fe643536f26
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=f95d34075879b1512406c8adfb5a2fe643536f26

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Tue Jan 31 17:47:40 2012 +0100

tests: improve tests

---

 tests/check/elements/audiorate.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/check/elements/audiorate.c b/tests/check/elements/audiorate.c
index 59fbeff..f358dce 100644
--- a/tests/check/elements/audiorate.c
+++ b/tests/check/elements/audiorate.c
@@ -70,8 +70,7 @@ test_injector_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
   GstFlowReturn ret;
   GstPad *srcpad;
 
-  srcpad =
-      gst_element_get_static_pad (GST_ELEMENT (GST_PAD_PARENT (pad)), "src");
+  srcpad = gst_element_get_static_pad (GST_ELEMENT (parent), "src");
 
   /* since we're increasing timestamp/offsets, push this one first */
   GST_LOG (" passing buffer   [t=%" GST_TIME_FORMAT "-%" GST_TIME_FORMAT
@@ -131,6 +130,7 @@ test_injector_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
   }
 
   gst_buffer_unref (buf);
+  gst_object_unref (srcpad);
 
   return ret;
 }
@@ -210,7 +210,7 @@ do_perfect_stream_test (guint rate, const gchar * format,
   src = gst_element_factory_make ("audiotestsrc", "audiotestsrc");
   fail_unless (src != NULL);
 
-  g_object_set (src, "num-buffers", 100, NULL);
+  g_object_set (src, "num-buffers", 10, NULL);
 
   conv = gst_element_factory_make ("audioconvert", "audioconvert");
   fail_unless (conv != NULL);



More information about the gstreamer-commits mailing list