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__)
相关推荐
梦幻通灵2 小时前
Mysql字段判空实用技巧
android·数据库·mysql
龘龍龙4 小时前
Python基础(九)
android·开发语言·python
gjc5925 小时前
MySQL隐蔽 BUG:组合条件查询无故返回空集?深度排查与规避方案
android·数据库·mysql·bug
梨落秋霜5 小时前
Python入门篇【元组】
android·数据库·python
zh_xuan5 小时前
kotlin定义函数和变量
android·开发语言·kotlin
Digitally7 小时前
Android 上的联系人备份和恢复:5 种可靠且方便的方法
android
默|笙8 小时前
【Linux】进程控制(3)进程程序替换
android·linux·运维
国家二级编程爱好者8 小时前
Android Lottie使用,如何自定义LottieView?
android·前端
bst@微胖子8 小时前
CrewAI+FastAPI实现营销战略协助智能体项目
android·数据库·fastapi
子林Android8 小时前
AndroidStudio修改.android、.gradle、.AndroidStudio路径,释放C盘空间
android·android studio