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__)
相关推荐
刮风那天13 分钟前
Android Framework 核心架构图
android
__Witheart__16 分钟前
3588 安卓编译空间不足报错
android
aaajj36 分钟前
【Android】手机屏幕劫持防护
android·智能手机
写做四月一日的四月一日1 小时前
在安卓手机上安装小龙虾openclaw并配置QQ机器人接入
android·人工智能
流星白龙1 小时前
【MySQL高阶】6.MySQL数据目录,日志
android·mysql·adb
福大大架构师每日一题1 小时前
rust 1.96.0 更新:语言、编译器、Cargo、Rustdoc、兼容性全面升级,必看完整解读
android·开发语言·rust
城管不管1 小时前
Agent——001
android·java·数据库·llm·prompt
刮风那天2 小时前
Android 理解onTransitionReady(一)
android
流星白龙2 小时前
【MySQL高阶】2.MySQL命令行客户端(2)
android·mysql·adb
努力努力再努力wz2 小时前
【Qt入门系列】:QLabel控件详解:从文本显示到图片展示,再到内容布局与伙伴机制
android·开发语言·数据结构·数据库·c++·qt·mysql