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__)
相关推荐
Flywith2413 分钟前
【每日一技】Warp Workflow 使用示例
android·前端
冬奇Lab35 分钟前
JobScheduler与WorkManager:任务调度机制
android·源码阅读
summerkissyou19872 小时前
Android-view-绘制流程及自定义例子
android·app
常利兵2 小时前
Android “解锁”屏幕方向:APP适配新征程
android·gitee
红藕香残玉簟秋4 小时前
【安卓学习】配置开发环境
android·学习
用户69371750013845 小时前
Android R8 深度解析:为什么 Google 用R8取代 ProGuard?
android·android studio·android jetpack
seabirdssss5 小时前
联想拯救者Y7000P上使用ADB无法监听到通过USB连接的安卓设备
android·adb
2501_916008896 小时前
iPhone 上怎么抓 App 的网络请求,在 iOS 设备上捕获网络请求
android·网络·ios·小程序·uni-app·iphone·webview
工业甲酰苯胺6 小时前
PHP闭包中static关键字的核心作用与底层原理解析
android·开发语言·php