mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
tests: small cleanup
This commit is contained in:
parent
e2f91075e4
commit
e9c23ca4fb
1 changed files with 2 additions and 2 deletions
|
@ -486,7 +486,6 @@ GST_START_TEST (test_encodebin_render_audio_only_static)
|
||||||
GstCaps *sinkcaps;
|
GstCaps *sinkcaps;
|
||||||
|
|
||||||
/* Create an encodebin and render 5s of vorbis only */
|
/* Create an encodebin and render 5s of vorbis only */
|
||||||
|
|
||||||
pipeline = gst_pipeline_new ("encodebin-pipeline");
|
pipeline = gst_pipeline_new ("encodebin-pipeline");
|
||||||
bus = gst_pipeline_get_bus ((GstPipeline *) pipeline);
|
bus = gst_pipeline_get_bus ((GstPipeline *) pipeline);
|
||||||
audiotestsrc = gst_element_factory_make ("audiotestsrc", NULL);
|
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);
|
g_object_set (ebin, "profile", prof, NULL);
|
||||||
gst_encoding_profile_unref (prof);
|
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));
|
fail_unless (gst_element_link_many (audiotestsrc, ebin, fakesink, NULL));
|
||||||
|
|
||||||
/* Requesting a new pad should fail */
|
/* Requesting a new pad should fail */
|
||||||
|
|
Loading…
Reference in a new issue