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__)
相关推荐
q***71855 小时前
MySQL--》如何在MySQL中打造高效优化索引
android·mysql·adb
IT痴者7 小时前
《PerfettoSQL 的通用查询模板》---Android-trace
android·开发语言·python
游戏开发爱好者87 小时前
iOS IPA 上传工具全面解析,从 Transporter 到开心上架(Appuploader)命令行的高效上架实践
android·ios·小程序·https·uni-app·iphone·webview
alexhilton9 小时前
Jetpack Compose中的阴影艺术
android·kotlin·android jetpack
百***618712 小时前
Spring的构造注入
android·java·spring
Tom4i12 小时前
Kotlin 中的 inline 和 reified 关键字
android·开发语言·kotlin
yi诺千金13 小时前
Android U 自由窗口(浮窗)——启动流程(system_server侧流程)
android
清空mega15 小时前
第11章 网络编程
android·网络
自动化BUG制造器15 小时前
Android UI 线程不一定是主线程
android
无知的前端16 小时前
一文读懂-Jetpack与AndroidX
android·kotlin·android jetpack