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__)
相关推荐
古月-一个C++方向的小白1 小时前
MySQL数据库——数据类型
android·数据库·mysql
张小潇3 小时前
AOSP15 WMS/AMS系统开发 - WindowManagerService finishDraw与prepareSurface流程详解
android
帅次5 小时前
Modifier 链与顺序、测量与命中区域
android·kotlin·compose·modifier
leory5 小时前
请详细描述Handler消息机制的工作原理
android·面试
leory5 小时前
请描述Binder IPC的基本原理和工作流程
android·面试
leory5 小时前
View的事件分发机制是怎样的?dispatchTouchEvent、onInterceptTouchEvent、onTouchEvent的关系?
android·面试
zander2586 小时前
Canal本地部署保姆级教程
android
小仙女喂得猪7 小时前
2026 Android 组件化项目的AICoding落地实践
android·kotlin·ai编程
leory7 小时前
请详细描述JVM的垃圾回收机制?
android·面试
leory7 小时前
volatile关键字的作用是什么?它能保证原子性吗?
android·面试