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__)
相关推荐
Escalating_xu3 小时前
【MySQL】事务管理(上):从 ACID 到提交回滚,把一次转账真正做完整
android·数据库·mysql
StarsGreen8 小时前
dumpsys gfxinfo数据信息分析方法
android
好的佩奇9 小时前
蓝牙之 GATT 数据模型
android·flutter·蓝牙
Android小码家10 小时前
Systemui和Launcher是如何无限重启
android·framework
GY-9315 小时前
【Android】WorkManager
android
fatiaozhang952717 小时前
开心电视助手极速版-版本9.6-新增安卓平台版本
android·开心电视助手极速版·版本9.6
urkay-18 小时前
Android 线程池工具类与监控
android·java·性能优化
StarsGreen18 小时前
Android 12 添加 v4l2_codec 服务详细流程
android
FungLeo18 小时前
FengCMS · PHP+MySQL升级实录 · 存量站升级方法论:备份 → 副本验收→migrate.php→ 停写切换
android·mysql·php·工程实践·fengcms