tmp
authoryu.dongliang <18588496441@163.com>
Sat, 8 Apr 2023 15:03:23 +0000 (23:03 +0800)
committeryu.dongliang <18588496441@163.com>
Sat, 8 Apr 2023 15:03:23 +0000 (23:03 +0800)
main.c
simp_filter.c

diff --git a/main.c b/main.c
index fcc04e2e7faeb3ef97befecc610efc7cb809e371..c14672778b20fa90a707f77943396f436c1c65aa 100644 (file)
--- a/main.c
+++ b/main.c
@@ -38,5 +38,7 @@ int main(int argc, char* argv[])
                return -1;
        }
 
+       while (1)
+               sleep(1);
        return 0;
 }
index 0a64851116df0ee410c543bacecfeeed458c0218..209b1bed8b280a5b01f14a0fd8997678e71e150c 100644 (file)
@@ -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;
 }