gstreamer: cleaning up resources
allow for arbitraty number of sources and sinks
Merge pull request #1003 from vhdirk:gstreamerfixes