mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
test: reset pad caps properly
This commit is contained in:
parent
ba534c6416
commit
8699bca39f
1 changed files with 7 additions and 1 deletions
|
@ -752,15 +752,21 @@ GST_START_TEST (test_ghost_pads_forward_setcaps)
|
|||
gst_object_unref (ghost);
|
||||
gst_caps_unref (caps1);
|
||||
|
||||
/* clear caps on pads */
|
||||
gst_pad_set_active (src, FALSE);
|
||||
gst_pad_set_active (src, TRUE);
|
||||
gst_pad_set_active (sink, FALSE);
|
||||
gst_pad_set_active (sink, TRUE);
|
||||
|
||||
/* sink pad 2, setting caps just on the target pad should not influence the caps
|
||||
* on the ghostpad. */
|
||||
notify_counter = 0;
|
||||
ghost = gst_ghost_pad_new ("ghostsink", sink);
|
||||
fail_unless (gst_pad_get_current_caps (ghost) == NULL);
|
||||
g_signal_connect (ghost, "notify::caps",
|
||||
G_CALLBACK (ghost_notify_caps), ¬ify_counter);
|
||||
fail_unless (gst_pad_link (src, ghost) == GST_PAD_LINK_OK);
|
||||
|
||||
gst_pad_set_active (src, TRUE);
|
||||
gst_pad_set_active (ghost, TRUE);
|
||||
|
||||
caps1 = gst_caps_from_string ("muh");
|
||||
|
|
Loading…
Reference in a new issue