Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append 'addMany' and 'removeMany' to gstreamer.Bin class #116

Merged
merged 1 commit into from Jun 8, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions wrap/APILookupGStreamer.txt
Expand Up @@ -39,6 +39,22 @@ code: start
super( elem.getElementStruct(), true );
this.gstBin = cast(GstBin*)elem.getElementStruct();
}

/**
* Adds a list of elements to a bin.
* This function is equivalent to calling add() for each member of the list.
* The return value of each gst_bin_add() is ignored.
*/
public void addMany( Element[] elems... )
{ foreach( e; elems ) add( e ); }

/**
* Remove a list of elements from a bin.
* This function is equivalent to calling remove() with each member of the list.
*/
public void removeMany( Element[] elems... )
{ foreach( e; elems ) remove( e ); }

code: end

struct: BufferPool
Expand Down