[0.11] gst-plugins-base: tests: small cleanup

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 2 09:31:27 PST 2012


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

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan  2 18:31:05 2012 +0100

tests: small cleanup

---

 tests/check/elements/encodebin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/check/elements/encodebin.c b/tests/check/elements/encodebin.c
index afde9fe..e835dd2 100644
--- a/tests/check/elements/encodebin.c
+++ b/tests/check/elements/encodebin.c
@@ -486,7 +486,6 @@ GST_START_TEST (test_encodebin_render_audio_only_static)
   GstCaps *sinkcaps;
 
   /* Create an encodebin and render 5s of vorbis only */
-
   pipeline = gst_pipeline_new ("encodebin-pipeline");
   bus = gst_pipeline_get_bus ((GstPipeline *) pipeline);
   audiotestsrc = gst_element_factory_make ("audiotestsrc", NULL);
@@ -499,8 +498,9 @@ GST_START_TEST (test_encodebin_render_audio_only_static)
   g_object_set (ebin, "profile", prof, NULL);
   gst_encoding_profile_unref (prof);
 
-  gst_bin_add_many ((GstBin *) pipeline, audiotestsrc, ebin, fakesink, NULL);
+  gst_bin_add_many (GST_BIN (pipeline), audiotestsrc, ebin, fakesink, NULL);
 
+  GST_DEBUG ("linking encodebin");
   fail_unless (gst_element_link_many (audiotestsrc, ebin, fakesink, NULL));
 
   /* Requesting a new pad should fail */



More information about the gstreamer-commits mailing list