mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
tests: fix caps usage in parser test helper
Fixes previous commit; users can call this with NULL caps.
This commit is contained in:
parent
30b40510ab
commit
c41b5d016c
1 changed files with 4 additions and 2 deletions
|
@ -151,7 +151,9 @@ setup_element (const gchar * factory, ElementSetup setup,
|
|||
sinkpad = gst_check_setup_sink_pad (element, sink_template);
|
||||
gst_pad_set_active (srcpad, TRUE);
|
||||
gst_pad_set_active (sinkpad, TRUE);
|
||||
if (src_caps)
|
||||
fail_unless (gst_pad_set_caps (srcpad, src_caps));
|
||||
if (sink_caps)
|
||||
fail_unless (gst_pad_set_caps (sinkpad, sink_caps));
|
||||
|
||||
bus = gst_bus_new ();
|
||||
|
|
Loading…
Reference in a new issue