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__)
相关推荐
恋猫de小郭33 分钟前
Android 17 新适配要求,各大权限进一步收紧,适配难度提升
android·前端·flutter
流星白龙41 分钟前
【MySQL】9.MySQL内置函数
android·数据库·mysql
进击的cc1 小时前
Android Kotlin:扩展函数如何优雅封装Android API
android·kotlin
进击的cc1 小时前
Android Kotlin:空安全机制在Android中的实战应用
android·kotlin
没有了遇见3 小时前
Android 实现天猫/京东/抖音/咸鱼/拼多多等商品详情页面智能跳转APP
android
乾坤一气杀3 小时前
Kotlin 协程线程切换原理 —— 以 Dispatchers.IO 为例
android
小书房4 小时前
Android各版本主要新特性
android
兄弟加油,别颓废了。5 小时前
ctf.show_web3
android
火柴就是我5 小时前
代码记录android怎么实现状态栏导航栏隐藏
android·flutter