提交 6a40bafc 编写于 作者: Z Zhang Rui

ijkplayer: reduce log

上级 e732f7a5
......@@ -291,9 +291,9 @@ IjkMediaPlayer_native_finalize(JNIEnv *env, jobject thiz)
inline static void post_event(JNIEnv *env, jobject weak_this, int what, int arg1, int arg2)
{
MPTRACE("post_event(%p, %p, %d, %d, %d)", (void*)env, (void*) weak_this, what, arg1, arg2);
// MPTRACE("post_event(%p, %p, %d, %d, %d)", (void*)env, (void*) weak_this, what, arg1, arg2);
(*env)->CallStaticVoidMethod(env, g_clazz.clazz, g_clazz.postEventFromNative, weak_this, what, arg1, arg2, NULL);
MPTRACE("post_event()=void");
// MPTRACE("post_event()=void");
}
static void message_loop_n(JNIEnv *env, IjkMediaPlayer *mp)
......
......@@ -31,6 +31,11 @@
#include "../ffmpeg/ijksdl_inc_ffmpeg.h"
#include "ijksdl_inc_internal_android.h"
#ifdef SDLTRACE
#undef SDLTRACE
#define SDLTRACE(...)
#endif
static int android_render_yv12_on_yv12(ANativeWindow_Buffer *out_buffer, const SDL_VoutOverlay *overlay)
{
// SDLTRACE("SDL_VoutAndroid: android_render_yv12_on_yv12(%p)", overlay);
......
......@@ -32,6 +32,11 @@
#include "ijksdl_android_jni.h"
#include "android_audiotrack.h"
#ifdef SDLTRACE
#undef SDLTRACE
#define SDLTRACE(...)
#endif
typedef struct SDL_Aout_Opaque {
SDL_cond *wakeup_cond;
SDL_mutex *wakeup_mutex;
......
......@@ -599,7 +599,6 @@ public class VideoView extends SurfaceView implements
if (mDuration > 0)
return (int) mDuration;
mDuration = mMediaPlayer.getDuration();
DebugLog.efmt(TAG, "duration:%d", (int)mDuration);
return (int) mDuration;
}
mDuration = -1;
......@@ -610,7 +609,6 @@ public class VideoView extends SurfaceView implements
public int getCurrentPosition() {
if (isInPlaybackState()) {
long position = mMediaPlayer.getCurrentPosition();
DebugLog.efmt(TAG, "position:%d", (int)position);
return (int) position;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册