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

jni: minisdl: individal module

上级 5e569659
......@@ -30,8 +30,8 @@ LOCAL_LDLIBS += -llog
LOCAL_SRC_FILES := ijkplayer_jni.c
LOCAL_SRC_FILES += ijkplayer.c
LOCAL_SRC_FILES += pkt_queue.c
LOCAL_SRC_FILES += minisdl/minisdl_thread.c
LOCAL_STATIC_LIBRARIES := minisdl
LOCAL_SHARED_LIBRARIES := ffmpeg helpers
LOCAL_MODULE := ijkplayer
......
......@@ -49,7 +49,7 @@ static IjkMediaPlayer *get_media_player(JNIEnv* env, jobject thiz)
// FIXME: lock ref count
pthread_mutex_lock(&g_clazz.mutex);
IjkMediaPlayer *mp = (IjkMediaPlayer *) (*env)->GetLongField(env, thiz, g_clazz.mNativeMediaPlayer);
IjkMediaPlayer *mp = (IjkMediaPlayer *) (intptr_t) (*env)->GetLongField(env, thiz, g_clazz.mNativeMediaPlayer);
if (mp) {
ijkmp_inc_ref(mp);
}
......
# copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
#
# This file is part of ijkPlayer.
#
# ijkPlayer is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# ijkPlayer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with ijkPlayer; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_C_CFLAGS := -std=c99
LOCAL_SRC_FILES := minisdl_thread.c
LOCAL_MODULE := minisdl
include $(BUILD_STATIC_LIBRARY)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册