Fixes a warning and a spelling mistake, applies formatting.

cusax-fix
Lyubomir Marinov 15 years ago
parent 8c8658e38f
commit 844513332a

@ -10,7 +10,6 @@
import java.util.*;
import net.java.sip.communicator.impl.neomedia.transform.*;
import net.java.sip.communicator.impl.neomedia.transform.zrtp.*;
import net.java.sip.communicator.service.neomedia.*;
import net.java.sip.communicator.service.neomedia.event.*;

@ -36,9 +36,7 @@ public DSCaptureDevice(long ptr)
{
/* do not allow 0 pointer value */
if(ptr == 0)
{
throw new IllegalArgumentException("invalid ptr value (0)");
}
this.ptr = ptr;
}

@ -38,8 +38,8 @@ public class DSManager
}
/**
* Empty array of <tt>DSCaptureDevice</tt>s. Explicitely defined
* in order to avoid unnecessary allocations.
* Empty array of <tt>DSCaptureDevice</tt>s. Explicitly defined in order to
* avoid unnecessary allocations.
*/
private static DSCaptureDevice[] EMPTY_DEVICES = new DSCaptureDevice[0];

@ -23,6 +23,7 @@ Import-Package: org.bouncycastle.crypto,
javax.swing.table,
javax.swing.text,
javax.xml.parsers,
javax.xml.transform,
net.java.sip.communicator.service.configuration,
net.java.sip.communicator.service.fileaccess,
net.java.sip.communicator.service.gui,

@ -175,19 +175,19 @@ public CallPeerSipImpl invite(Address calleeAddress,
// create the call peer
CallPeerSipImpl callPeer
= createCallPeerFor(inviteTransaction, jainSipProvider);
CallPeerMediaHandlerSipImpl mediaHandler = callPeer.getMediaHandler();
/* enable video if it is a videocall */
callPeer.getMediaHandler().setLocalVideoTransmissionEnabled(
localVideoAllowed);
mediaHandler.setLocalVideoTransmissionEnabled(localVideoAllowed);
if(initialQualityPreferences != null)
{
// we are in situation where we init the call and we cannot
// determine whether the other party supports changing quality
// so we force it
callPeer.getMediaHandler().setSupportQualityControls(true);
callPeer.getMediaHandler().getQualityControl()
.setRemoteSendMaxPreset(initialQualityPreferences);
mediaHandler.setSupportQualityControls(true);
mediaHandler.getQualityControl().setRemoteSendMaxPreset(
initialQualityPreferences);
}
try

Loading…
Cancel
Save