aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java')
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractBufferCaptureDevice.java16
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java2
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPushBufferCaptureDevice.java2
3 files changed, 11 insertions, 9 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractBufferCaptureDevice.java b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractBufferCaptureDevice.java
index 56ede98..0148475 100644
--- a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractBufferCaptureDevice.java
+++ b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractBufferCaptureDevice.java
@@ -476,13 +476,15 @@ public abstract class AbstractBufferCaptureDevice
* Gets the <tt>AbstractBufferStream</tt>s through which this
* <tt>AbstractBufferCaptureDevice</tt> gives access to its media data.
*
- * @param clz the <tt>Class</tt> of <tt>AbstractBufferStream</tt> which is
- * to be the element type of the returned array
- * @return an array of the <tt>AbstractBufferStream</tt>s through which this
+ * @param <SourceStreamT> the type of <tt>SourceStream</tt> which is to be
+ * the element type of the returned array
+ * @param clz the <tt>Class</tt> of <tt>SourceStream</tt> which is to be the
+ * element type of the returned array
+ * @return an array of the <tt>SourceStream</tt>s through which this
* <tt>AbstractBufferCaptureDevice</tt> gives access to its media data
*/
- public synchronized AbstractBufferStreamT[] getStreams(
- Class<AbstractBufferStreamT> clz)
+ public synchronized <SourceStreamT> SourceStreamT[] getStreams(
+ Class<SourceStreamT> clz)
{
if (streams == null)
{
@@ -515,8 +517,8 @@ public abstract class AbstractBufferCaptureDevice
int streamCount = (streams == null) ? 0 : streams.length;
@SuppressWarnings("unchecked")
- AbstractBufferStreamT[] clone
- = (AbstractBufferStreamT[]) Array.newInstance(clz, streamCount);
+ SourceStreamT[] clone
+ = (SourceStreamT[]) Array.newInstance(clz, streamCount);
if (streamCount != 0)
System.arraycopy(streams, 0, clone, 0, streamCount);
diff --git a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java
index 233fee1..b3d9923 100644
--- a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java
+++ b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPullBufferCaptureDevice.java
@@ -348,7 +348,7 @@ public abstract class AbstractPullBufferCaptureDevice
*/
public PullBufferStream[] getStreams()
{
- return impl.getStreams(AbstractPullBufferStream.class);
+ return impl.getStreams(PullBufferStream.class);
}
/**
diff --git a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPushBufferCaptureDevice.java b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPushBufferCaptureDevice.java
index 9afb664..213ff3e 100644
--- a/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPushBufferCaptureDevice.java
+++ b/src/net/java/sip/communicator/impl/neomedia/jmfext/media/protocol/AbstractPushBufferCaptureDevice.java
@@ -369,7 +369,7 @@ public abstract class AbstractPushBufferCaptureDevice
*/
public PushBufferStream[] getStreams()
{
- return impl.getStreams(AbstractPushBufferStream.class);
+ return impl.getStreams(PushBufferStream.class);
}
/**