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__)
相关推荐
你看我名字15 小时前
OpenAI 兼容接口能不能直接接入:数眼智能大模型 API 迁移实战与兼容性检查
android·java·数据库·大模型平台选择
用户693717500138415 小时前
用上 AI 之后,Android 的边界确实在消失,但我的活反而变多了
android·人工智能·ai编程
AI2中文网15 小时前
App Inventor 做的表单怎么导出 PDF?WebViewer + JavaScript 在本地生成并保存 PDF 的完整示例
android·开发语言·javascript·pdf·鸿蒙·app inventor
应用市场16 小时前
安卓底层拆解(二)· 改成 user 版为什么开不了机:合成密码与启动状态
android
星夜离尘5616 小时前
MATLAB:标定表局部倒退,为什么不能排序?
android·开发语言·matlab
StarsGreen16 小时前
Android 12环境下检查v4l2_code的接入方法
android
纪念 22917 小时前
C++ 算法模板与错题 模拟(一)
android·c++·算法
Jason_zhao_MR19 小时前
米尔MYD-JR3576开发板 Android 15系统正式发布
android·linux·嵌入式硬件·嵌入式
右手吉他20 小时前
打开Android hostapd 调试
android
booboosui20 小时前
一轮 8 条记录:端侧 agent 怎么写审计日志
android