mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
tests: fix input-selector-test
Update for pad template name changes.
This commit is contained in:
parent
b79d6b1c09
commit
92967c3d2a
1 changed files with 3 additions and 3 deletions
|
@ -76,10 +76,10 @@ switch_timer (GstElement * video_switch)
|
|||
g_object_get (G_OBJECT (video_switch), "active-pad", &active_pad, NULL);
|
||||
|
||||
active_name = gst_pad_get_name (active_pad);
|
||||
if (strcmp (active_name, "sink0") == 0) {
|
||||
new_pad = gst_element_get_static_pad (video_switch, "sink1");
|
||||
if (strcmp (active_name, "sink_0") == 0) {
|
||||
new_pad = gst_element_get_static_pad (video_switch, "sink_1");
|
||||
} else {
|
||||
new_pad = gst_element_get_static_pad (video_switch, "sink0");
|
||||
new_pad = gst_element_get_static_pad (video_switch, "sink_0");
|
||||
}
|
||||
g_object_set (G_OBJECT (video_switch), "active-pad", new_pad, NULL);
|
||||
g_free (active_name);
|
||||
|
|
Loading…
Reference in a new issue