Skip to content
Snippets Groups Projects
Commit 508c257b authored by Lyubomir Marinov's avatar Lyubomir Marinov
Browse files

Allows MuteDataSource (and InbandDTMFDataSource) from...

Allows MuteDataSource (and InbandDTMFDataSource) from RewritablePull/PushBufferDataSource to penetrate SourceCloneable.
parent dbf8e263
No related branches found
No related tags found
No related merge requests found
......@@ -118,12 +118,20 @@ public PullBufferDataSource getWrappedDataSource()
@Override
public Object getControl(String controlType)
{
/*
* The super implements a delegate so we can be sure that it delegates
* the invocation of Controls#getControl(String) to the wrapped
* dataSource.
*/
return AbstractControls.queryInterface(dataSource, controlType);
if (InbandDTMFDataSource.class.getName().equals(controlType)
|| MuteDataSource.class.getName().equals(controlType))
{
return this;
}
else
{
/*
* The super implements a delegate so we can be sure that it
* delegates the invocation of Controls#getControl(String) to the
* wrapped dataSource.
*/
return AbstractControls.queryInterface(dataSource, controlType);
}
}
/**
......
......@@ -68,12 +68,20 @@ public RewritablePushBufferDataSource(PushBufferDataSource dataSource)
@Override
public Object getControl(String controlType)
{
/*
* The super implements a delegate so we can be sure that it delegates
* the invocation of Controls#getControl(String) to the wrapped
* dataSource.
*/
return AbstractControls.queryInterface(dataSource, controlType);
if (InbandDTMFDataSource.class.getName().equals(controlType)
|| MuteDataSource.class.getName().equals(controlType))
{
return this;
}
else
{
/*
* The super implements a delegate so we can be sure that it
* delegates the invocation of Controls#getControl(String) to the
* wrapped dataSource.
*/
return AbstractControls.queryInterface(dataSource, controlType);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment