mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
Call LinkMany Link and UnlinkMany Unlink
This commit is contained in:
parent
5e1cc54a37
commit
c77fa39ad1
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ public bool AddPad (Pad p) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool LinkMany (params Element [] elements) {
|
public static bool Link (params Element [] elements) {
|
||||||
for (int i = 0; i < elements.Length - 1; i++) {
|
for (int i = 0; i < elements.Length - 1; i++) {
|
||||||
if (!elements[i].Link (elements[i+1]))
|
if (!elements[i].Link (elements[i+1]))
|
||||||
return false;
|
return false;
|
||||||
|
@ -19,7 +19,7 @@ public static bool LinkMany (params Element [] elements) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void UnlinkMany (params Element [] elements) {
|
public static void Unlink (params Element [] elements) {
|
||||||
for (int i = 0; i < elements.Length - 1; i++) {
|
for (int i = 0; i < elements.Length - 1; i++) {
|
||||||
elements[i].Unlink (elements[i+1]);
|
elements[i].Unlink (elements[i+1]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue