summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-05-12 16:28:06 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-07-29 22:06:20 +0000
commitd919059525d53ac1f3fd97b59b12144ff1778a46 (patch)
tree44dc7122153e5a0f6097119e79dbc011cd7db32e
parent8a86f1e6e4cb60c4bd50afdb7a34cf3be4bad338 (diff)
validate: playbin3: Add a test to check mixing static and dynamic pad on source
See https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1120 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-integration-testsuites/-/merge_requests/103>
-rw-r--r--testsuites/validate.testslist1
-rw-r--r--testsuites/validate/playbin3/sourcebin_check_mixed_static_and_dyanmic_pads.validatetest14
2 files changed, 15 insertions, 0 deletions
diff --git a/testsuites/validate.testslist b/testsuites/validate.testslist
index 3c8a5ea..a746db1 100644
--- a/testsuites/validate.testslist
+++ b/testsuites/validate.testslist
@@ -942,6 +942,7 @@ validate.test.mp4.qtdemux_reverse_playback_full_gop.reverse_playback_full_gop
validate.test.mp4.redirect.play_15s
validate.test.nle.urisource.play
validate.test.playbin.check_active_stream
+validate.test.playbin3.sourcebin_check_mixed_static_and_dyanmic_pads
validate.test.rtp.rtpsession_recv_simple
validate.test.rtp.rtpsession_send_simple
validate.test.scaletempo.playbin_audio_filter.fast_forward
diff --git a/testsuites/validate/playbin3/sourcebin_check_mixed_static_and_dyanmic_pads.validatetest b/testsuites/validate/playbin3/sourcebin_check_mixed_static_and_dyanmic_pads.validatetest
new file mode 100644
index 0000000..3df3bc5
--- /dev/null
+++ b/testsuites/validate/playbin3/sourcebin_check_mixed_static_and_dyanmic_pads.validatetest
@@ -0,0 +1,14 @@
+meta,
+ handles-states=true,
+ args = {
+ "playbin3 uri=testbin://video video-sink=\"fakesink sync=true\" audio-sink=\"fakesink sync=true\"",
+ }
+
+pause
+set-properties, testsrcbin0::stream-types=video+audio
+wait, message-type=async-done # New `async-done` message after the sink is added
+
+# Check that the new pad has been exposed
+check-properties, urisourcebin0.src_1::name=src_1
+
+stop \ No newline at end of file