WebRTCDemo: correct set trace filter operation.
BUG=3285 TEST=Manul Test R=fischman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/17389004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6051 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
9f453b1a1b
commit
633aff6bd0
@ -631,7 +631,8 @@ JOWW(jint, VideoEngine_setTraceFile)(JNIEnv* jni, jobject, jstring j_filename,
|
||||
return webrtc::VideoEngine::SetTraceFile(filename.c_str(), file_counter);
|
||||
}
|
||||
|
||||
JOWW(jint, VideoEngine_setTraceFilter)(JNIEnv* jni, jobject, jint filter) {
|
||||
JOWW(jint, VideoEngine_nativeSetTraceFilter)(JNIEnv* jni, jobject,
|
||||
jint filter) {
|
||||
return webrtc::VideoEngine::SetTraceFilter(filter);
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class VideoEngine {
|
||||
TRACE_DEBUG(0x0800),
|
||||
TRACE_INFO(0x1000),
|
||||
TRACE_TERSE_INFO(0x2000),
|
||||
TRACE_ALL(0xfff);
|
||||
TRACE_ALL(0xffff);
|
||||
|
||||
public final int level;
|
||||
TraceLevel(int level) {
|
||||
@ -103,9 +103,9 @@ public class VideoEngine {
|
||||
public native int setTraceFile(String fileName,
|
||||
boolean fileCounter);
|
||||
public int setTraceFilter(TraceLevel filter) {
|
||||
return filter.level;
|
||||
return nativeSetTraceFilter(filter.level);
|
||||
}
|
||||
private native int setTraceFilter(int filter);
|
||||
private native int nativeSetTraceFilter(int filter);
|
||||
public int startRtpDump(int channel, String file,
|
||||
RtpDirections direction) {
|
||||
return startRtpDump(channel, file, direction.ordinal());
|
||||
|
Loading…
x
Reference in New Issue
Block a user