vlcplayer for android 源码编译log打印

vlcplayer for android 源码编译log打印

这篇文章记录了vlcplayer for android 开源库中libvlc.so中添加log打印的方法。

主要针对libvlc源码中msg_Info/msg_Err/msg_Warn/msg_Dbg 函数打印输出到Android log中。修改如下:

vlc-android/libvlcjni/vlc/include/vlc_message.h中,导入

c 复制代码
#include <android/log.h>

msg_Info/msg_Err/msg_Warn/msg_Dbg最终都会调用到msg_Generic ,所以只修改msg_Generic ,修改如下,去掉vlc_Log函数

c 复制代码
#define msg_Generic(o,p, ...) \
    __android_log_print(p,vlcmodule_name,__VA_ARGS__)
相关推荐
爱笑鱼19 小时前
Android 系统启动机制(七):进入 SystemServer.main() 以后,system_server 还是一个空进程吗?
android·linux
好安静19 小时前
SurfaceFlinger 合成一帧的完整流程
android
alexhilton19 小时前
架构测试为何需要双视图
android·kotlin·android jetpack
事圆则缓19 小时前
Jetpack Compose 快速上手
android·kotlin
y小花19 小时前
安卓HAL接口技术之HIDL&AIDL
android
YF021119 小时前
Android 系统自带机制的卸载更新都哪些实现方案
android
事圆则缓20 小时前
MVC、MVP、MVVM、MVI 的区别与实现原理
android·kotlin·mvc
事圆则缓20 小时前
Android组件化指南
android·kotlin
binbin_5221 小时前
HarmonyOS 应用功耗优化实战:定位耗电、收口任务与验证回归
android·回归·harmonyos
AFinalStone1 天前
Android 7系统无障碍服务(七)手势分发与 KeyEvent 处理
android·无障碍服务