随笔分类 -  C++笔记

srs客户端连接CRtmpServer立即中断问题
摘要:最近遇到srs客户端推流时,连接CRtmpServer后立即中断,经调试发现srs在 int SrsRtmpClient::fmle_publish(string stream, int& stream_id)函数中调用了 下面的代码导致连接CRtmpServer后 CRtmpServer找不到那个 阅读全文

posted @ 2017-10-27 15:54 zentel 阅读(361) 评论(0) 推荐(0)

zlib压缩解压示例
摘要:#include #include #include #include "zlib.h" #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) # include # include # define SET_BINARY_MODE(file) setmode(fileno(fil... 阅读全文

posted @ 2016-10-27 11:12 zentel 阅读(1533) 评论(0) 推荐(0)

libsdl中文输入法候选列表不显示解决方案
摘要:libsdl输入中文时输入法不显示,将WM_IME_SETCONTEXT事件处理给注释即可。 WM_IME_SETCONTEXT If the application draws the composition window, the default IME window does not have 阅读全文

posted @ 2016-10-11 09:56 zentel 阅读(1774) 评论(1) 推荐(0)

ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64
摘要:diff --git a/libvpx.gyp b/libvpx.gypindex 4f8cb2b..4eb6866 100644--- a/libvpx.gyp+++ b/libvpx.gyp@@ -74,7 +74,7 @@ # support for neon and hide i... 阅读全文

posted @ 2015-11-23 10:05 zentel 阅读(767) 评论(0) 推荐(0)

Android WebRTC视频旋转问题
摘要:最近在对接WebRTC到安卓手机上,有个需求就是手机横屏时将对方图像进行旋转,研究了WebRTC video_render的代码后发现远端的视频渲染使用opengles20或surfaceview实现,其中opengles20使用硬件渲染,因此性能更好,所以只需将video_render_ope... 阅读全文

posted @ 2015-11-11 21:58 zentel 阅读(2541) 评论(0) 推荐(0)

rapidxml对unicode的支持
摘要:为了提高duilib创建布局控件的效率,在LuaDui项目中使用rapidxml解析器替换了duilib库自带的xml解析器。duilib使用unicode编译,所以rapidxml需要解析unicode xml字符串。 使用rapidxml解析unicode字符串很简单,只需在rapidxm... 阅读全文

posted @ 2014-12-14 15:28 zentel 阅读(850) 评论(0) 推荐(0)

libjingle线程机制
摘要:libjingle包装了所有的线程,包括signaling thread,worker thread, 和其它任何线程,用talk_base::Thread来包装。所有的 Thread对象由ThreadManager来管理 ,ThreadManager可以在线程内任意地方调CurrentThread 阅读全文

posted @ 2014-05-25 21:33 zentel 阅读(710) 评论(0) 推荐(0)

导航