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__)
相关推荐
意念回复5 小时前
Transformer 系列(五):从 Block 到模型——三大架构、因果掩码与自回归生成
android·回归·transformer
松仔log7 小时前
Kotlin中级——KMP
android·开发语言·kotlin
GY-937 小时前
【Android】SQL数据库
android
GY-938 小时前
【Android】适配不同的屏幕尺寸
android
Chenpip19 小时前
安卓 14/15 上装不上:四层原因与三行检查
android·app分发·应用分发·海哈游分发·内测
TT哇9 小时前
【Android 之旅】Android 通俗易懂记
android·gitee
雨白10 小时前
工厂设计模式实战:从简单工厂到抽象工厂的演进之路
android
Digitally10 小时前
7 种主流安卓设备备份与恢复方法
android
恋猫de小郭10 小时前
Flutter HC 旋转 ANR,而且还和之前的 HCPP 问题类似
android·前端·flutter
Digitally10 小时前
如何在安卓设备上备份和恢复通话记录:完整指南
android