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__)
相关推荐
renke33642 分钟前
Flutter 2025 跨平台工程体系:从 iOS/Android 到 Web/Desktop,构建真正“一次编写,全端运行”的产品
android·flutter·ios
儿歌八万首17 分钟前
Android 自定义 View :打造一个跟随滑动的丝滑指示器
android
yueqc132 分钟前
Android System Lib 梳理
android·lib
Zender Han2 小时前
Flutter 中 AbsorbPointer 与 IgnorePointer 的区别与使用场景详解
android·flutter·ios
Just_Paranoid2 小时前
【Settings】Android 常见外设检测机制
android·sd·usb·camera·keyboard·sim
_李小白2 小时前
【Android FrameWork】延伸阅读:ptrace机制
android
光芒Shine2 小时前
【Android-开发指南】
android
哈龙_992 小时前
Android 文件下载库ketch示例
android