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__)
相关推荐
闲猫1 小时前
基于RABC的权限控制设计
android
星霜笔记4 小时前
GitMob — 手机端 GitHub 管理工具
android·kotlin·github·android jetpack
LiuYaoheng5 小时前
问题记录:Android Studio Low memory
android·ide·android studio
独隅5 小时前
Python 标准库 (Standard Library) 全面使用指南
android·开发语言·python
always_TT5 小时前
strlen、strcpy、strcat等常用字符串函数
android
qqty12176 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
2401_895521346 小时前
MySQL中between and的基本用法
android·数据库·mysql
云云鬼才6 小时前
CoCo编辑器、图形化编程怎么调用Scheme(跳转应用)
android
Jason__Young9 小时前
Android ViewModel为什么能够跨越Activity的生命周期?
android
TechMix9 小时前
【性能优化】RenderThread各工作阶段梳理
android·性能优化