Reland of Android Logging.java: Load native library only when needed (patchset #1 id:1 of https://codereview.webrtc.org/2814133002/ )
Reason for revert: Fix bug in original CL. Original issue's description: > Revert of Android Logging.java: Load native library only when needed (patchset #2 id:2 of https://codereview.webrtc.org/2817593003/ ) > > Reason for revert: > Change in Logging.java breaking compilation (incorrect reference to enum) > > Original issue's description: > > Reland of Android Logging.java: Load native library only when needed (patchset #1 id:1 of https://codereview.webrtc.org/2816753002/ ) > > > > Reason for revert: > > Fix bug in original CL. > > > > Original issue's description: > > > Revert of Android Logging.java: Load native library only when needed (patchset #3 id:40001 of https://codereview.webrtc.org/2803203002/ ) > > > > > > Reason for revert: > > > Breaks C++ logs in Java apps. > > > > > > Original issue's description: > > > > Android Logging.java: Load native library only when needed > > > > > > > > Logging.java currently always tries to load jingle_peerconnection_so in > > > > the static section, but some clients don't want to use it. This CL loads > > > > jingle_peerconnection_so only when a client requests it by calling one > > > > of: > > > > * Logging.enableLogThreads > > > > * Logging.enableLogTimeStamps > > > > * Logging.enableTracing > > > > * Logging.enableLogToDebugOutput > > > > > > > > BUG=b/36410678 > > > > > > > > Review-Url: https://codereview.webrtc.org/2803203002 > > > > Cr-Commit-Position: refs/heads/master@{#17647} > > > > Committed:dee5eb14e1> > > > > > TBR=sakal@webrtc.org,glaznev@webrtc.org,noahric@chromium.org,magjed@webrtc.org > > > # Not skipping CQ checks because original CL landed more than 1 days ago. > > > BUG=b/36410678 > > > > > > Review-Url: https://codereview.webrtc.org/2816753002 > > > Cr-Commit-Position: refs/heads/master@{#17676} > > > Committed:6e4a4427dc> > > > TBR=sakal@webrtc.org,glaznev@webrtc.org,noahric@chromium.org,brandtr@webrtc.org > > # Skipping CQ checks because original CL landed less than 1 days ago. > > NOPRESUBMIT=true > > NOTREECHECKS=true > > NOTRY=true > > BUG=b/36410678 > > > > Review-Url: https://codereview.webrtc.org/2817593003 > > Cr-Commit-Position: refs/heads/master@{#17677} > > Committed:297714619f> > TBR=sakal@webrtc.org,glaznev@webrtc.org,noahric@chromium.org,brandtr@webrtc.org,magjed@webrtc.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=b/36410678 > > Review-Url: https://codereview.webrtc.org/2814133002 > Cr-Commit-Position: refs/heads/master@{#17678} > Committed:06034c7d64TBR=sakal@webrtc.org,glaznev@webrtc.org,noahric@chromium.org,brandtr@webrtc.org,lliuu@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. BUG=b/36410678 Review-Url: https://codereview.webrtc.org/2813363004 Cr-Commit-Position: refs/heads/master@{#17694}
This commit is contained in:
@ -20,6 +20,10 @@ import java.io.RandomAccessFile;
|
||||
import java.io.IOException;
|
||||
|
||||
public class FileVideoCapturer implements VideoCapturer {
|
||||
static {
|
||||
System.loadLibrary("jingle_peerconnection_so");
|
||||
}
|
||||
|
||||
private interface VideoReader {
|
||||
int getFrameWidth();
|
||||
int getFrameHeight();
|
||||
|
||||
@ -22,6 +22,10 @@ import java.util.ArrayList;
|
||||
* Can be used to save the video frames to file.
|
||||
*/
|
||||
public class VideoFileRenderer implements VideoRenderer.Callbacks {
|
||||
static {
|
||||
System.loadLibrary("jingle_peerconnection_so");
|
||||
}
|
||||
|
||||
private static final String TAG = "VideoFileRenderer";
|
||||
|
||||
private final HandlerThread renderThread;
|
||||
|
||||
Reference in New Issue
Block a user