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__)
相关推荐
Ehtan_Zheng2 小时前
如何简化状态和实体映射Kotlin接口,委托和协变泛型
android
飘逸飘逸4 小时前
Autojs进阶前言
android·javascript
spencer_tseng4 小时前
Branding Printing System (Android Pad)
android·pad
FrameNotWork4 小时前
多设备 Android Logcat 自动采集方案:基于 Docker + Shell 实现日志按天切割与自动清理
android·docker·容器
bqliang6 小时前
Compose 实验性 Styles API
android·android jetpack
大尚来也6 小时前
PHP 入门指南:从零基础到掌握核心语法
android
summerkissyou19876 小时前
android -wifi/蓝牙-常见面试题
android·wifi·bluetooth
XiaoLeisj6 小时前
Android Activity 页面导航基础:Manifest 声明、Intent 显式/隐式跳转与数据传递
android·java
littlegnal7 小时前
Flutter Android如何延迟加载代码
android·flutter