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__)
相关推荐
代码s贝多芬的音符30 分钟前
android mlkit 实现仰卧起坐和俯卧撑识别
android
jwn9991 小时前
Laravel9.x核心特性全解析
android
今天又在写代码2 小时前
数据智能分析平台部署服务器
android·服务器·adb
梦里花开知多少3 小时前
深入谈谈Launcher的启动流程
android·架构
jwn9993 小时前
Laravel11.x新特性全解析
android·开发语言·php·laravel
我就是马云飞3 小时前
停更5年后,我为什么重新开始写技术内容了
android·前端·程序员
stevenzqzq4 小时前
Kotlin 协程:withContext 与 async 核心区别与使用场景
android·开发语言·kotlin
唔664 小时前
原生 Android(Kotlin)仅串口「侵入式架构」完整案例三
android·架构·kotlin
唔664 小时前
原生 Android(Kotlin)仅串口「可插拔架构」完整案例一
android·架构·kotlin
Melrose4 小时前
移动端安全攻防
android·前端·安全