kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
8d4f3803df
commit
5b08be8d01
|
@ -29,7 +29,7 @@ int WebRtcJitterBuffer::init() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_create(&stats, NULL, &WebRtcJitterBuffer::collectStats, this);
|
// pthread_create(&stats, NULL, &WebRtcJitterBuffer::collectStats, this);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -67,12 +67,12 @@ int WebRtcJitterBuffer::getAudio(short *rawData, int maxRawData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebRtcJitterBuffer::stop() {
|
void WebRtcJitterBuffer::stop() {
|
||||||
pthread_mutex_lock(&lock);
|
// pthread_mutex_lock(&lock);
|
||||||
running = 0;
|
running = 0;
|
||||||
pthread_cond_signal(&condition);
|
// pthread_cond_signal(&condition);
|
||||||
pthread_mutex_unlock(&lock);
|
// pthread_mutex_unlock(&lock);
|
||||||
|
|
||||||
pthread_join(stats, NULL);
|
// pthread_join(stats, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WebRtcJitterBuffer::collectStats() {
|
void WebRtcJitterBuffer::collectStats() {
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -166,6 +166,7 @@ public class RedPhone extends Activity {
|
||||||
Log.w(TAG, "Termination Stack:", new Exception());
|
Log.w(TAG, "Termination Stack:", new Exception());
|
||||||
|
|
||||||
callScreen.setActiveCall(recipient, getString(R.string.RedPhone_ending_call));
|
callScreen.setActiveCall(recipient, getString(R.string.RedPhone_ending_call));
|
||||||
|
EventBus.getDefault().removeStickyEvent(RedPhoneEvent.class);
|
||||||
|
|
||||||
delayedFinish();
|
delayedFinish();
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,7 @@ public class RedPhoneService extends Service implements CallStateListener, CallS
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStart(Intent intent, int startId) {
|
public void onStart(Intent intent, int startId) {
|
||||||
|
Log.w(TAG, "onStart(): " + intent);
|
||||||
if (intent == null) return;
|
if (intent == null) return;
|
||||||
new Thread(new IntentRunnable(intent)).start();
|
new Thread(new IntentRunnable(intent)).start();
|
||||||
}
|
}
|
||||||
|
@ -148,6 +149,7 @@ public class RedPhoneService extends Service implements CallStateListener, CallS
|
||||||
else if (intent.getAction().equals(ACTION_DENY_CALL)) handleDenyCall(intent);
|
else if (intent.getAction().equals(ACTION_DENY_CALL)) handleDenyCall(intent);
|
||||||
else if (intent.getAction().equals(ACTION_HANGUP_CALL)) handleHangupCall(intent);
|
else if (intent.getAction().equals(ACTION_HANGUP_CALL)) handleHangupCall(intent);
|
||||||
else if (intent.getAction().equals(ACTION_SET_MUTE)) handleSetMute(intent);
|
else if (intent.getAction().equals(ACTION_SET_MUTE)) handleSetMute(intent);
|
||||||
|
else Log.w(TAG, "Unhandled intent: " + intent.getAction() + ", state: " + state);
|
||||||
}
|
}
|
||||||
|
|
||||||
///// Initializers
|
///// Initializers
|
||||||
|
|
Ładowanie…
Reference in New Issue