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