From 77a7fb170f64449d139d83337cd5098d2b4df080 Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Sat, 8 Apr 2023 23:03:23 +0800 Subject: [PATCH] tmp --- main.c | 2 ++ simp_filter.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index fcc04e2..c146727 100644 --- a/main.c +++ b/main.c @@ -38,5 +38,7 @@ int main(int argc, char* argv[]) return -1; } + while (1) + sleep(1); return 0; } diff --git a/simp_filter.c b/simp_filter.c index 0a64851..209b1be 100644 --- a/simp_filter.c +++ b/simp_filter.c @@ -189,6 +189,8 @@ int simp_filter_open(simp_filter_t** pf) pthread_cond_init (&f->cond, NULL); f->tid = -1; + + *pf = f; return 0; } @@ -386,7 +388,7 @@ int simp_filter_add_input(simp_filter_t* f, simp_avio_t* input) return 0; } - scf_loge("\n"); + scf_loge("f: %p, input: %p\n", f, input); return -1; } -- 2.25.1