{
final List<PullBufferDataSource> sourcesCast = new ArrayList<PullBufferDataSource>();
for (DataSource source : sources)
sourcesCast.add((PullBufferDataSource) source);
if (allCaptureDevice)
return new MergingCaptureDevicePullBufferDataSource(sourcesCast);
else
return new MergingPullBufferDataSource(sourcesCast);
}
else if (allPushDataSource)
{