From e878e92811a2dbfb6b4d3f7b2c357435f56e28db Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期日, 29 九月 2019 10:27:21 +0800
Subject: [PATCH] add trytime

---
 libcffmpeg.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libcffmpeg.c b/libcffmpeg.c
index dcdf5f9..69fcbb9 100644
--- a/libcffmpeg.c
+++ b/libcffmpeg.c
@@ -19,6 +19,8 @@
     if(lib){
         fn_create = (lib_cffmpeg_create)dlsym(lib, "c_ffmpeg_create");
         release_if_err(fn_create, lib);
+        fn_create2 = (lib_cffmpeg_create)dlsym(lib, "c_ffmpeg_create2");
+        release_if_err(fn_create2, lib);
         fn_destroy = (lib_cffmpeg_destroy)dlsym(lib, "c_ffmpeg_destroy");
         release_if_err(fn_destroy, lib);
         fn_run = (lib_cffmpeg_run)dlsym(lib, "c_ffmpeg_run");
@@ -67,6 +69,10 @@
     return fn_create();
 }
 
+cffmpeg wrap_fn_create2(const char *logfile){
+    return fn_create2(logfile);
+}
+
 void wrap_fn_destroy(const cffmpeg h){
     fn_destroy(h);
 }

--
Gitblit v1.8.0