Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: talk/app/webrtc/java/jni/peerconnection_jni.cc

Issue 1346013006: Fixing bad merge (CHECK is now RTC_CHECK) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 encoder_factory = new MediaCodecVideoEncoderFactory(); 1096 encoder_factory = new MediaCodecVideoEncoderFactory();
1097 decoder_factory = new MediaCodecVideoDecoderFactory(); 1097 decoder_factory = new MediaCodecVideoDecoderFactory();
1098 } 1098 }
1099 #endif 1099 #endif
1100 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory( 1100 rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
1101 webrtc::CreatePeerConnectionFactory(worker_thread, 1101 webrtc::CreatePeerConnectionFactory(worker_thread,
1102 signaling_thread, 1102 signaling_thread,
1103 NULL, 1103 NULL,
1104 encoder_factory, 1104 encoder_factory,
1105 decoder_factory)); 1105 decoder_factory));
1106 CHECK(factory) << "Failed to create the peer connection factory; " 1106 RTC_CHECK(factory) << "Failed to create the peer connection factory; "
1107 << "WebRTC/libjingle init likely failed on this device"; 1107 << "WebRTC/libjingle init likely failed on this device";
1108 OwnedFactoryAndThreads* owned_factory = new OwnedFactoryAndThreads( 1108 OwnedFactoryAndThreads* owned_factory = new OwnedFactoryAndThreads(
1109 worker_thread, signaling_thread, 1109 worker_thread, signaling_thread,
1110 encoder_factory, decoder_factory, 1110 encoder_factory, decoder_factory,
1111 factory.release()); 1111 factory.release());
1112 return jlongFromPointer(owned_factory); 1112 return jlongFromPointer(owned_factory);
1113 } 1113 }
1114 1114
1115 JOW(void, PeerConnectionFactory_freeFactory)(JNIEnv*, jclass, jlong j_p) { 1115 JOW(void, PeerConnectionFactory_freeFactory)(JNIEnv*, jclass, jlong j_p) {
1116 delete reinterpret_cast<OwnedFactoryAndThreads*>(j_p); 1116 delete reinterpret_cast<OwnedFactoryAndThreads*>(j_p);
1117 if (field_trials_init_string) { 1117 if (field_trials_init_string) {
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
1822 rtc::scoped_ptr<jbyte> buffer(static_cast<jbyte*>(malloc(log_size))); 1822 rtc::scoped_ptr<jbyte> buffer(static_cast<jbyte*>(malloc(log_size)));
1823 stream->ReadAll(buffer.get(), log_size, &read, nullptr); 1823 stream->ReadAll(buffer.get(), log_size, &read, nullptr);
1824 1824
1825 jbyteArray result = jni->NewByteArray(read); 1825 jbyteArray result = jni->NewByteArray(read);
1826 jni->SetByteArrayRegion(result, 0, read, buffer.get()); 1826 jni->SetByteArrayRegion(result, 0, read, buffer.get());
1827 1827
1828 return result; 1828 return result;
1829 } 1829 }
1830 1830
1831 } // namespace webrtc_jni 1831 } // namespace webrtc_jni
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698