mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
encodebin: Requesting a pad again now gives a g_return_val_if_fail()
Before the behaviour was undefined and implemented differently by elements, now core checks for this (and other problems) and returns NULL and an assertion.
This commit is contained in:
parent
5aa02968c9
commit
f1f0625e97
1 changed files with 2 additions and 1 deletions
|
@ -504,7 +504,8 @@ GST_START_TEST (test_encodebin_render_audio_only_static)
|
|||
fail_unless (gst_element_link_many (audiotestsrc, ebin, fakesink, NULL));
|
||||
|
||||
/* Requesting a new pad should fail */
|
||||
fail_if (gst_element_get_request_pad (ebin, "audio_0") != NULL);
|
||||
ASSERT_CRITICAL (gst_element_get_request_pad (ebin, "audio_0"));
|
||||
|
||||
sinkcaps = gst_caps_new_simple ("audio/x-raw-int", NULL);
|
||||
g_signal_emit_by_name (ebin, "request-pad", sinkcaps, &sinkpad);
|
||||
gst_caps_unref (sinkcaps);
|
||||
|
|
Loading…
Reference in a new issue