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__)
相关推荐
每次的天空2 小时前
Android第十五次面试总结(第三方组件和adb命令)
android
追随远方2 小时前
Android音频开发:Speex固定帧与变长帧编解码深度解析
android·音视频
消失的旧时光-19432 小时前
Android和硬件通信
android
0wioiw02 小时前
安卓基础(编译.Class)
android
0wioiw02 小时前
安卓基础(aar)
android
_一条咸鱼_2 小时前
Android Runtime链接(Linking)阶段准备工作(27)
android·面试·android jetpack
aqi003 小时前
FFmpeg开发笔记(六十四)使用国产的RedPlayer播放器观看网络视频
android·ffmpeg·音视频·直播·流媒体
雨白4 小时前
扩展函数和运算符重载
android
casual_clover5 小时前
Android Studio 解决首次安装时下载 Gradle 慢问题
android·ide·android studio
天天爱吃肉82185 小时前
新能源汽车热管理核心技术解析:冬季续航提升40%的行业方案
android·python·嵌入式硬件·汽车