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***21293 小时前
Springboot3学习(5、Druid使用及配置)
android·学习
修炼者3 小时前
【Android 进阶】别再强转 Context 了!手把手教你优雅解耦 View 与 Activity
android·android studio
x***01063 小时前
SpringSecurity+jwt实现权限认证功能
android·前端·后端
程序员江同学4 小时前
线下活动|2025 Kotlin 中文开发者大会北京分会场
android·kotlin
李坤林5 小时前
Android Vulkan 开启VK_GOOGLE_DISPLAY_TIMING 后,一个vsync 会释放两个imageBuffer现象分析
android·vulkan
Jerry5 小时前
Compose 状态思维
android
k***45995 小时前
MySQL----case的用法
android·数据库·mysql
r***86987 小时前
Plugin ‘mysql_native_password‘ is not loaded`
android·数据库·mysql
v***59837 小时前
MySQL-mysql zip安装包配置教程
android·mysql·adb
不用89k8 小时前
Android无法区分USB摄像头是哪一个
android