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__)
相关推荐
zhangphil10 小时前
Android产品级图库/相册应用关键性能瓶颈:媒体数据聚合
android
StarsGreen11 小时前
Android系统相关命令介绍
android·windows
传奇开心果编程11 小时前
【六大移动UI框架比较学与练】第4课:列表与滚动——懒加载、复用与状态保持实战对照
android·flutter·react native·ios·swiftui·移动开发·android jetpack
恋猫de小郭11 小时前
Flutter 奇葩 Bug:错过一次合成,后续每帧的 Raster 都顺带变慢?
android·前端·flutter
三少爷的鞋12 小时前
一段 Kotlin 协程代码,藏着 5 个问题:你能发现几个?
android
棒棒的唐13 小时前
发一个用本地AI(openclaw)写的调用本地llama.cpp服务对话,并按指定要求识别图片的PHP类
android·php·llama
_祝你今天愉快1 天前
Android 事件传递机制:[二] 手写模拟事件分发
android
东坡大表哥1 天前
【Ubuntu】Ubuntu 20.04 LTS → 22.04 LTS 升级实录
android·linux·ubuntu
不要试图纠正别人1 天前
IdleHandler 一次都不跑,问题不在主线程忙
android·性能优化
booboosui1 天前
记忆装不下时谁删:500 条上限与每回合十行索引
android