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__)
相关推荐
我不会插花弄玉9 小时前
7.函数【由浅入深-MySQL】
android·数据库·mysql
vilya9 小时前
手机端 Agent 怎么动起来:Kotlin 与 Python 之间的桥
android·agent
高晶9 小时前
Android 新手实战:从零搭建 WebRTC 在线直播系统
android·程序员
alexhilton9 小时前
为什么你的 LazyColumn 仍然卡顿
android·kotlin·android jetpack
>Andre<11 小时前
系统架构全景
android
hai_android15 小时前
Android 嵌套滑动冲突:内部拦截 vs 外部拦截实战
android·android studio·android jetpack
木子欢儿17 小时前
Zabbix 7.4 Alpine 版 Docker Compose 部署
android·运维·docker·容器·zabbix
素师良码18 小时前
第9篇:Android驱动踩坑实录:DSI RX FIFO前置脏0、数据错位复盘
android
夜雪一千18 小时前
如何在MySQL中实现字段级加密
android·数据库·mysql
夜雪一千18 小时前
MySQL 如何存储经纬度坐标:选型、建表、空间查询实战
android·mysql·adb