[0.11] gst-plugins-base: tests: fix a unit test

Wim Taymans wtay at kemper.freedesktop.org
Mon Jan 2 06:43:00 PST 2012


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

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Mon Jan  2 15:40:35 2012 +0100

tests: fix a unit test

The ogg muxer now has video and audio pads

---

 tests/check/pipelines/oggmux.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/tests/check/pipelines/oggmux.c b/tests/check/pipelines/oggmux.c
index d1e2fec..0e3a6ea 100644
--- a/tests/check/pipelines/oggmux.c
+++ b/tests/check/pipelines/oggmux.c
@@ -316,7 +316,7 @@ test_pipeline (const char *pipeline)
 GST_START_TEST (test_vorbis)
 {
   test_pipeline
-      ("audiotestsrc num-buffers=5 ! audioconvert ! vorbisenc ! oggmux");
+      ("audiotestsrc num-buffers=5 ! audioconvert ! vorbisenc ! .audio_%u oggmux");
 }
 
 GST_END_TEST;
@@ -326,7 +326,7 @@ GST_START_TEST (test_vorbis_oggmux_unlinked)
   GstElement *pipe;
   GstMessage *msg;
 
-  pipe = gst_parse_launch ("audiotestsrc ! vorbisenc ! oggmux", NULL);
+  pipe = gst_parse_launch ("audiotestsrc ! vorbisenc ! .audio_%u oggmux", NULL);
   if (pipe == NULL) {
     g_printerr ("Skipping test 'test_vorbis_oggmux_unlinked'");
     return;
@@ -350,7 +350,7 @@ GST_END_TEST;
 GST_START_TEST (test_theora)
 {
   test_pipeline
-      ("videotestsrc num-buffers=5 ! videoconvert ! theoraenc ! oggmux");
+      ("videotestsrc num-buffers=5 ! videoconvert ! theoraenc ! .video_%u oggmux");
 }
 
 GST_END_TEST;
@@ -360,8 +360,8 @@ GST_END_TEST;
 GST_START_TEST (test_theora_vorbis)
 {
   test_pipeline
-      ("videotestsrc num-buffers=10 ! videoconvert ! theoraenc ! queue ! oggmux name=mux "
-      "audiotestsrc num-buffers=2 ! audioconvert ! vorbisenc ! queue ! mux.");
+      ("videotestsrc num-buffers=10 ! videoconvert ! theoraenc ! queue ! .video_%u oggmux name=mux "
+      "audiotestsrc num-buffers=2 ! audioconvert ! vorbisenc ! queue ! mux.audio_%u");
 }
 
 GST_END_TEST;
@@ -369,8 +369,8 @@ GST_END_TEST;
 GST_START_TEST (test_vorbis_theora)
 {
   test_pipeline
-      ("videotestsrc num-buffers=2 ! videoconvert ! theoraenc ! queue ! oggmux name=mux "
-      "audiotestsrc num-buffers=10 ! audioconvert ! vorbisenc ! queue ! mux.");
+      ("videotestsrc num-buffers=2 ! videoconvert ! theoraenc ! queue ! .video_%u oggmux name=mux "
+      "audiotestsrc num-buffers=10 ! audioconvert ! vorbisenc ! queue ! mux.audio_%u");
 }
 
 GST_END_TEST;
@@ -392,10 +392,10 @@ GST_START_TEST (test_request_pad_cleanup)
   GstPad *pad;
 
   oggmux = gst_element_factory_make ("oggmux", NULL);
-  pad = gst_element_get_request_pad (oggmux, "sink_%u");
+  pad = gst_element_get_request_pad (oggmux, "video_%u");
   fail_unless (pad != NULL);
   gst_object_unref (pad);
-  pad = gst_element_get_request_pad (oggmux, "sink_%u");
+  pad = gst_element_get_request_pad (oggmux, "audio_%u");
   fail_unless (pad != NULL);
   gst_object_unref (pad);
   gst_object_unref (oggmux);



More information about the gstreamer-commits mailing list