1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Small Consistence Fix

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7911 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo 2007-04-06 16:59:43 +00:00 committed by thiago
parent b695257f76
commit ca19a1ee57

View file

@ -76,7 +76,6 @@ public class AudioReceiver implements ReceiveStreamListener, SessionListener,
// Find out the formats. // Find out the formats.
RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl"); RTPControl ctl = (RTPControl) ds.getControl("javax.jmf.rtp.RTPControl");
jingleMediaSession.mediaReceived(participant!=null?participant.getCNAME():"");
if (ctl != null) { if (ctl != null) {
System.err.println(" - Recevied new RTP stream: " + ctl.getFormat()); System.err.println(" - Recevied new RTP stream: " + ctl.getFormat());
} }
@ -96,6 +95,7 @@ public class AudioReceiver implements ReceiveStreamListener, SessionListener,
p.addControllerListener(this); p.addControllerListener(this);
p.realize(); p.realize();
jingleMediaSession.mediaReceived(participant != null ? participant.getCNAME() : "");
// Notify intialize() that a new stream had arrived. // Notify intialize() that a new stream had arrived.
synchronized (dataSync) { synchronized (dataSync) {