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__)
相关推荐
Nerve4 小时前
FluxImageLoader : 基于Coil3封装的 Android 图片加载库,旨在提供简单、高效且功能丰富的图片加载解决方案
android·android jetpack
元气满满-樱4 小时前
MySQL基础管理
android·mysql·adb
summerkissyou19874 小时前
android13-audio-AudioTrack-写数据流程
android·音视频
董三毛6 小时前
Kotlin Coroutine 底层实现原理
android
L108706 小时前
AutoJsPro GoogleMaterial3 M3组件使用示例
android
枣把儿8 小时前
「zotepad」用Gemini3pro写出一个高效写作和发文的记事本应用
android·前端·nuxt.js
明川8 小时前
Android Gradle 学习 - 生命周期和Task
android·前端·gradle
技术摆渡人8 小时前
Android 系统技术探索(5)指尖的舞蹈(Input 系统与 ANR)
android
来碗疙瘩汤8 小时前
uniapp动态读取版本号
android
用户41659673693559 小时前
存量项目如何拥抱 KMP?从环境搭建到组件化集成的保姆级指南
android